note 63974 deleted from function.in-array by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: Imre Péntek
----
Beware that "Good morning"==0, so
<?php
$m=array(0,"Hello");
var_dump(in_array("Good morning",$m));
?>
will output
bool(true)
so you will need to set strict.