note 18424 added to function.array-search
| From: | walter at waltertross dot com | Date: | Tue, 22 Jan 2002 13:50:16 +0000 |
| Subject: | note 18424 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25684@lists.php.net to get a copy of this message | ||
The manual page should be modified like this:
Searches haystack for needle and returns the key if it is found in the array, NULL otherwise.
And the Warning should be:
This function may return NULL, but may also return key values evaluating to FALSE in a simple if
statement. Please use the === and !== operators for testing the return value of this function.
--
http://www.php.net/manual/en/function.array-search.php
http://master.php.net/manage/user-notes.php?action=edit+18424
http://master.php.net/manage/user-notes.php?action=delete+18424
http://master.php.net/manage/user-notes.php?action=reject+18424