src/Util/Str.php
public static function containsOneOf($haystack, array $needles)
    {
        foreach ($needles as $needle) {
            if ($needle !== '' && mb_strpos($haystack, $needle) !== false) {
                return true;
            }
        }

        return false;
    }
public static function containsOneOf($haystack, array $needles)
    {
        foreach ($needles as $needle) {
            if ($needle !== '' && mb_strpos($haystack, $needle) !== false) {
                return true;
            }
        }

        return false;
    }
public static function containsOneOf ( $ haystack , array $ needles ) { foreach ( $ needles as $ needle ) { if ( $ needle !== '' && mb_strpos ( $ haystack , $ needle ) !== false ) { return true ; } } return false ; }
String contains one of the provided needles

@param string $haystack
@param array $needles
@return bool
String contains one of the provided needles