"René fournier" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a simple way to return the key (name) of one element in an
> array? I looked up key() in the docs, but there are no examples or
> notes...

key() will do it, but you have to have the internal pointer already on the
element you want.  If you're not using next(), prev(), etc, then what you
probably want to use it array_search().

  -- Rob



>
> Thanks.
>
> ...Rene


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to