Arrays help please

From: Date: Tue, 25 Jul 2000 23:25:00 +0000
Subject: Arrays help please
Groups: php.general 
Request: Send a blank email to php-general+get-8161@lists.php.net to get a copy of this message
Hi, How can I refer to an array using a value instead of a number? Ex: I have a 2 dimensional array like myarray = array("bob"=>array("male","27"), etc etc) I want to refer to the array values like this: echo myarray["bob"][0] => would print "male". Instead of having to do it like: echo myarray[0][0] Is this possible? Thanks, Chris

« previous php.general (#8161) next »