On Mon, 19 Feb 2001, André Langhorst wrote:
> > How about using array_keys($array, $value) to find the key?
> 
> obviously it is cheaper to let in_array return it and it is more php 4 
> stylish, we have booleans, why not use them?
> 
> if ($key=in_array()) do_someting_with_key($key);

So, you suggest putting in 4th parameter? Then someone on php-general
suggested a few months ago to put in another parameter that controls
whether in_array() moves internal pointer or not.. Too many parameters.

-Andrei
* Power corrupts. Atomic power corrupts atomically. *

--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to