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\'
$user_agent = 'yandeX'; $bots = ['Google','Yahoo','Yandex']; foreach($bots as $b){ if( stripos( $user_agent, $b ) !== false ) return $b; }