To check if array contains string case insensitive in PHP you can use the following snippet.
function ArrayContainsStringCaseInsensitve($searchString, $array){ foreach($array as $element){ if(strcasecmp($searchString, $element)==0){ return true; } } return false; }
RT @CodeSnippetsNET: Check if array contains str case insensitive #PHP http://t.co/SmSSAYqI0X #html