note 100653 deleted from function.in-array by thiago
| From: | thiago@php.net | Date: | Thu, 28 Oct 2010 14:30:40 +0000 |
| Subject: | note 100653 deleted from function.in-array by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173550@lists.php.net to get a copy of this message | ||
Note Submitter: helder dot araujo at gmail dot com
----
In response to @ ctulek at gmail dot com
You need to use the third parameter of the function. Then, it will also test the type of the values.
$arr = array(0,1,2,3,4,5);
in_array(NULL, $arr, TRUE) will return false