src/Arr.php
public static function anyIn($anyValue, array $array): bool
    {
        if (is_array($anyValue)) {
            return (bool) array_intersect($anyValue, $array);
        }

        return in_array($anyValue, $array);
    }
public static function anyIn($anyValue, array $array): bool
    {
        if (is_array($anyValue)) {
            return (bool) array_intersect($anyValue, $array);
        }

        return in_array($anyValue, $array);
    }
public static function anyIn ( $ anyValue , array $ array ) : bool { if ( is_array ( $ anyValue ) ) { return ( bool ) array_intersect ( $ anyValue , $ array ) ; } return in_array ( $ anyValue , $ array ) ; }
If any of the provided values is in an array.

This is a convenient function for constructs like in_array('val1', $a) || in_array('val2, $a) etc.

@param array|string $anyValue Array of needles (will try any for a match)
@param array        $array    Haystack array
@return bool
If any of the provided values is in an array .