From: [EMAIL PROTECTED]
PHP version: 4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description: make in_array return key, if searched value was found
in_array() currently returns only true/false on whether or not a searched-for value is
in a given array.
I would like it to return the key of the array's element when value was found, and
false otherwise. This should not break existing code using in_array().
Edit Bug report at: http://bugs.php.net/?id=9337&edit=1
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]