printing out this nested array

From: Date: Mon, 14 May 2007 10:41:12 +0000
Subject: printing out this nested array
Groups: php.general 
Request: Send a blank email to php-general+get-254914@lists.php.net to get a copy of this message
I am having a bit of a confusion printing the values of an array i have. When i print_r this array it contains the following: Array ( [ValueA] => ValueA [ValueB] => valueB [TestValue] => TestValue [Errors] => Array ( [0] => Array ( [ErrorId] => AD27JH [ErrorMsg] => OK ) ) ) I can get the values of ValueA, ValueB and TestValue but I am a bit confused at getting the values of ErrorId and ErrorMsg. e.g. echo $arrayName['ValueA']; // will display the value contained there am thinking echo $arrayName['Errors']['ErrorId']; // should display the value but it does not Anyone wants to shed more light ? Cheers --------------------------------- 8:00? 8:25? 8:40? Find a flick in no time with theYahoo! Search movie showtime shortcut.

« previous php.general (#254914) next »