note 18314 added to function.array-search

From: Date: Fri, 18 Jan 2002 02:39:25 +0000
Subject: note 18314 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-25011@lists.php.net to get a copy of this message
I don't know why this is, but if your expecting array_search to return false and you are testing via ===, try doing a gettype on the returned value and you might see that it is returning NULL not false. -- http://www.php.net/manual/en/function.array-search.php http://master.php.net/manage/user-notes.php?action=edit+18314 http://master.php.net/manage/user-notes.php?action=delete+18314 http://master.php.net/manage/user-notes.php?action=reject+18314

« previous php.notes (#25011) next »