note 15999 added to function.array-search

From: Date: Thu, 11 Oct 2001 18:36:29 +0000
Subject: note 15999 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-18836@lists.php.net to get a copy of this message
Note that if your array has identical entries, array_search() will return the index of the *LAST* matching entry. $a = array('a', 'a', 'a'); $i = array_search('a', $a); $i will equal 2. -- http://www.php.net/manual/en/function.array-search.php http://master.php.net/manage/user-notes.php?action=edit+15999 http://master.php.net/manage/user-notes.php?action=delete+15999 http://master.php.net/manage/user-notes.php?action=reject+15999

« previous php.notes (#18836) next »