Re: Is there such an array like $array[][]?

From: Date: Tue, 17 Apr 2001 22:18:28 +0000
Subject: Re: Is there such an array like $array[][]?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-49072@lists.php.net to get a copy of this message
Woh, I had no idea PHP supported more than 2 dimensions...lol, was that a recent addition? I could _sware_ I originally read it on either zend.com or in the manual that 2 dimensional arrays are all that are supported...then again, this is why I don't gamble :) Live and learn, lol. Guess I should of actually _tried_ it and not have just taken their word for it. -- Plutarck Should be working on something... ...but forgot what it was. "CC Zona" <cczona@nospam.invalid> wrote in message news:9bi3ac$9n9$1@toye.p.sourceforge.net... > In article <9bhrri$sn9$1@toye.p.sourceforge.net>, > aemuli@spamclause-yahoo.com ("Plutarck") wrote: > > > Just another option, but feel free to use multi-dimensional arrays. Just be > > aware that PHP supports only two dimensions (so $array[][][] will not work), > > and if you try and get fancy with sort() and count() you are going to give > > yourself a migraine. > > Odd. 3+ dimensions works fine for me. I pass two dimensional arrays in > forms all the time, then reference them from $HTTP_*_VARS which adds > another dimension. No problem there. It's true sort() and count() are > sorting or counting the elements of the first dimension, but PHP does > provide other functions which allow for effective handling of more > dimensions (ex. array_multisort()). > > -- > CC > > -- > 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 (#49072) next »