note 40218 deleted from function.in-array by felipe
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
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;
}