Array question - Finding the name
| From: | Phil Schwarzmann | Date: | Fri, 07 Jun 2002 14:16:41 +0000 |
| Subject: | Array question - Finding the name | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101116@lists.php.net to get a copy of this message | ||
Let's say I have an array...
$my_array[] = array('bob' => $x, 'jim' => $y, 'mike' => $z);
Now I want to find the name of the second element in the array (I want
my result to be 'jim')
How do I do this? I think I might have to use the key() function but I
can't quite get it to wkr.
Thanks!