note 39757 deleted from function.in-array by felipe

From: Date: Sun, 30 Dec 2007 18:52:51 +0000
Subject: note 39757 deleted from function.in-array by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134472@lists.php.net to get a copy of this message
Note Submitter: one_eddie at tenbit dot pl ---- I found no sample with case-insensitive in_array. Here's one i wrote: function in_array_cin($strItem, $arItems) { $bFound = FALSE; foreach ($arItems as str$Value) { if (strtpupper($strItem) == strtoupper($strValue)) $bFound = TRUE; } return $bFound; }

« previous php.notes (#134472) next »