Re: Iterating Multidimensional Arrays

From: Date: Thu, 11 Jan 2001 23:16:27 +0000
Subject: Re: Iterating Multidimensional Arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34139@lists.php.net to get a copy of this message
What output did you get? What did you expect? ----- Original Message ----- From: "Cybercandy Ltd" <allan@cybercandy.co.uk> Newsgroups: php.general Sent: Thursday, January 11, 2001 6:54 AM Subject: [PHP] Iterating Multidimensional Arrays > I'm a bit stuck on this issue > > The following script produces a result that I can't get my head round: > > <? > > $allan[1][0] = 1; > $allan[1][1] = "Alpha"; > $allan[2][0] = 2; > $allan[2][1] = "Beta"; > > While ($output = each($allan)){ > print $output[1]; > } > > ?> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#34139) next »