Re: Simple Array Question...

From: Date: Thu, 05 Oct 2006 17:21:38 +0000
Subject: Re: Simple Array Question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242693@lists.php.net to get a copy of this message
Russell Jones wrote: > lets say I have an array... > > $myArray = array ( > > "firstkey" => "first val", > "secondkey" => "second val" > > ) > > > Can I still call these by their numeric order? ie, echo $myArray[0] shoudl > print out "first val"... No, but you can do: $myArrayNumeric = array_values($myArray); echo $myArrayNumeric[0]; Col.

« previous php.general (#242693) next »