Is it possible to do case-insensitive comparison when using the in_array function?
in_array
So with a source array like this:
$a= array( \'one\'
function in_arrayi($needle, $haystack) { return in_array(strtolower($needle), array_map('strtolower', $haystack)); }
From Documentation