note 25938 added to function.array-search

From: Date: Fri, 11 Oct 2002 18:58:22 +0000
Subject: note 25938 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-37953@lists.php.net to get a copy of this message
The array_search function is great.. IF you give the keys unique names, if you let php do it automatically it will only number them 0-whatever. So if you then search for a value and it is found at 0 then the function will return 0 aka false. -- http://www.php.net/manual/en/function.array-search.php http://master.php.net/manage/user-notes.php?action=edit+25938 http://master.php.net/manage/user-notes.php?action=delete+25938 http://master.php.net/manage/user-notes.php?action=reject+25938

« previous php.notes (#37953) next »