note 38760 deleted from function.array-search by vincent
| From: | vincent@php.net | Date: | Tue, 06 Jan 2004 08:51:57 +0000 |
| Subject: | note 38760 deleted from function.array-search by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62990@lists.php.net to get a copy of this message | ||
Note Submitter: ralfoide at yahoo dot com
----
Note that the description of the function prototype and the first example are contradictory and led
me to confusion.
Description says:
array_search(mixed needle, array haystack [, bool strict])
But example says:
array_search($array, "needle");
Arguments are reversed in the description. With PHP 4.1.2, the example's argument order works.