note 30619 rejected from function.array-search by betz
| From: | betz@php.net | Date: | Mon, 24 Mar 2003 09:48:36 +0000 |
| Subject: | note 30619 rejected from function.array-search by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-45723@lists.php.net to get a copy of this message | ||
-----------------------------------------------
$arr = array(0,2,3,7,8,9,10,11,20,30);
if(array_search(0, $arr) != null) echo("Find 0");
else echo("Not Found");
-----------------------------------------------
in this test, "Not Found" displayed
Why??