note 40218 added to function.in-array

From: Date: Wed, 25 Feb 2004 17:59:24 +0000
Subject: note 40218 added to function.in-array
Groups: php.notes 
Request: Send a blank email to php-notes+get-65749@lists.php.net to get a copy of this message
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; } ---- Manual Page -- http://www.php.net/manual/en/function.in-array.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40218 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40218&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40218&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65749) next »