Another solution using array_unique, to check if first array is onto another one.
$arr1 = [1,2,3]; $arr2 = [1,2,3,4,5,6,7]; $arrayContains = count(array_unique([...$arr1, ...$arr2])) === count($arr2);