note 40218 deleted from function.in-array by felipe

From: Date: Sun, 30 Dec 2007 18:53:02 +0000
Subject: note 40218 deleted from function.in-array by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134474@lists.php.net to get a copy of this message
Note Submitter: zapher at cae dot hl2files dot com ---- I corrected one_eddie at tenbit dot pl 's case-insensitive-script... It kinda didn't work :p function in_array_cin($strItem, $arItems) { $bFound = FALSE; foreach ($arItems as $strValue) { if (strtoupper($strItem) == strtoupper($strValue)) { $bFound = TRUE; } } echo $bFound; }

« previous php.notes (#134474) next »