note 18711 added to function.array-search

From: Date: Fri, 01 Feb 2002 14:26:03 +0000
Subject: note 18711 added to function.array-search
Groups: php.notes 
Request: Send a blank email to php-notes+get-26125@lists.php.net to get a copy of this message
for those with php <= 4.04, copy this function in the source or your code: function array_search($str, $vars) { foreach ($vars as $key => $val) { if ($val == $str) { return $key; } } } -- http://www.php.net/manual/en/function.array-search.php http://master.php.net/manage/user-notes.php?action=edit+18711 http://master.php.net/manage/user-notes.php?action=delete+18711 http://master.php.net/manage/user-notes.php?action=reject+18711

« previous php.notes (#26125) next »