note 45157 deleted from function.array-search by aidan

From: Date: Sat, 28 Aug 2004 03:52:38 +0000
Subject: note 45157 deleted from function.array-search by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75476@lists.php.net to get a copy of this message
Note Submitter: statick at statick dot co dot uk ---- I use this simple function to perform a case-insensitive search function array_isearch($needle, $haystack) { // traverse array reset($haystack); while (list($key, $val) = each($haystack)) { if (strtolower($val) == strtolower($needle)) { return $key; } } return false; }

« previous php.notes (#75476) next »