public static function in_array_all($needles, $haystack)
    {
        foreach ($needles as $n) {
            if (!in_array($n, $haystack)) {
                return false;
            }
        }

        return true;
    }
public static function in_array_all($needles, $haystack)
    {
        foreach ($needles as $n) {
            if (!in_array($n, $haystack)) {
                return false;
            }
        }

        return true;
    }
public static function in_array_all ( $ needles , $ haystack ) { foreach ( $ needles as $ n ) { if ( ! in_array ( $ n , $ haystack ) ) { return false ; } } return true ; }
Search an array for multiple values.

@param array $needles
the values to search the `$haystack` for.
@param array $haystack
the in which to search for the `$needles`
@return boolean
true if any of the `$needles` are in `$haystack`,
false otherwise.
Search an array for multiple values .