note 18711 deleted from function.array-search by didou
| From: | didou@php.net | Date: | Tue, 16 Dec 2003 09:33:08 +0000 |
| Subject: | note 18711 deleted from function.array-search by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62032@lists.php.net to get a copy of this message | ||
Note Submitter: marty@korse.nl
----
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;
}
}
}