note 58933 rejected from function.in-array by betz
| From: | betz@php.net | Date: | Mon, 21 Nov 2005 21:36:59 +0000 |
| Subject: | note 58933 rejected from function.in-array by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98907@lists.php.net to get a copy of this message | ||
Note Submitter: csouza at web-sense dot net
----
The documentation doesn't seem very clear on this so just to make it a bit clearer
If you're passing an array as needle, in_array will return true when ALL the elements in the
array are found as opposed to returning true when ANY element in array needle is present in
haystack.