public static function in_iarray($needle, array $haystack)
    {
        foreach ($haystack as $key => $value) {
            if (strcasecmp($value, $needle) == 0) {
                return true;
            }
        }
        return false;
    }
public static function in_iarray($needle, array $haystack)
    {
        foreach ($haystack as $key => $value) {
            if (strcasecmp($value, $needle) == 0) {
                return true;
            }
        }
        return false;
    }
public static function in_iarray ( $ needle , array $ haystack ) { foreach ( $ haystack as $ key => $ value ) { if ( strcasecmp ( $ value , $ needle ) == 0 ) { return true ; } } return false ; }
Test whether a value is in an array based on string comparison, ignoring
the case of the values.

@param mixed $needle
the object to search the array for.
@param array $haystack
the array to search for the `$needle`.
@return boolean
true if the `$needle` is in the `$haystack`, false otherwise.
Test whether a value is in an array based on string comparison ignoring the case of the values .