public static isSubset ( array | Traversable $needles, array | Traversable $haystack, boolean $strict = false ) : boolean | ||
$needles | array | Traversable | The values that must **all** be in `$haystack`. |
$haystack | array | Traversable | The set of value to search. |
$strict | boolean | Whether to enable strict (`===`) comparison. |
Результат | boolean | `true` if `$needles` is a subset of `$haystack`, `false` otherwise. |