note 18076 added to function.array-search

From: Date: Wed, 09 Jan 2002 20:51:08 +0000
Subject: note 18076 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-24594@lists.php.net to get a copy of this message
$map = array( 'version' => 4 , 'OS' => 'Linux' , 'lang' => 'english' , 'short_tags' => true ); $key = array_search("4",$map); print $key; //returns short_tags //strange results.. $array = array (1,13, 20); $key = array_search("13",$array); print $key; //works as expected //returns 1 -- http://www.php.net/manual/en/function.array-search.php http://master.php.net/manage/user-notes.php?action=edit+18076 http://master.php.net/manage/user-notes.php?action=delete+18076 http://master.php.net/manage/user-notes.php?action=reject+18076

« previous php.notes (#24594) next »