[PHP] printing out this nested array

2007-05-14 Thread Don Don
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

Re: [PHP] printing out this nested array

2007-05-14 Thread Crayon Shin Chan
On Monday 14 May 2007 18:41, Don Don wrote: am thinking echo $arrayName['Errors']['ErrorId']; // should display the value but it does not Anyone wants to shed more light ? echo $arrayName['Errors'][0]['ErrorId']; // ?? -- Crayon -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] printing out this nested array

2007-05-14 Thread Richard Davey
Don Don wrote: 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

Re: [PHP] printing out this nested array

2007-05-14 Thread Don Don
oops ! [0] cheers Richard Davey [EMAIL PROTECTED] wrote: Don Don wrote: 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] =

RE: [PHP] printing out this nested array

2007-05-14 Thread Brad Fuller
Don Don wrote: 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

Re: [PHP] printing out this nested array

2007-05-14 Thread Jim Lucas
Don Don wrote: 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

Re: [PHP] printing out this nested array

2007-05-14 Thread Myron Turner
Jim Lucas wrote:-- Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Unknown Malvolio,12th Night, III.iv -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/

Re: [PHP] printing out this nested array

2007-05-14 Thread Richard Davey
Jim Lucas wrote: suggestion for next time. echo a pre or plaintext tag out before you echo your array next time and you will then see the nesting of the arrays Doing that would have made the answer to this question very obvious You could also benefit from installing this very handy little