note 30619 added to function.array-search
| From: | sMokaHallp at rack1 dot php dot net | Date: | Mon, 24 Mar 2003 05:47:49 +0000 |
| Subject: | note 30619 added to function.array-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45716@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??
--
http://www.php.net/manual/en/function.array-search.php
http://master.php.net/manage/user-notes.php?action=edit+30619
http://master.php.net/manage/user-notes.php?action=delete+30619
http://master.php.net/manage/user-notes.php?action=reject+30619