Re: Simple array question

From: Date: Wed, 22 Oct 2003 20:11:16 +0000
Subject: Re: Simple array question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167158@lists.php.net to get a copy of this message
"René fournier" <m5@renefournier.com> wrote in message news:60EB0BE8-058B-11D8-BDD6-0003931DAC94@renefournier.com... > 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

« previous php.general (#167158) next »