note 3718 deleted from function.in-array by jimw

From: Date: Fri, 07 Dec 2001 21:05:42 +0000
Subject: note 3718 deleted from function.in-array by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21956@lists.php.net to get a copy of this message
To find out where the needle is in the haystack, check out http://www.php.net/manual/function.each.php3 now you could do something like, $array = array("one", "two", "three", "etc"); while ($i = each($array)) { if ($i["value"] == "three") { echo "three was found in the haystack's element " , $i["key"]; } }

« previous php.notes (#21956) next »