im looking for a function like array_intersect but instead of returning what values are present in 2 arrays it should return TRUE only if all values in array 1 are contained in array 2.
For example:
$first_array = array(0=>1, 1=>4, 2=>8)
$second_array = array(0=>9, 1=>8, 2=>7, 3=>1, 4=>3, 5=>4)
If you compare both arrays, all the values in $first_array are present in $second_array which are 1, 4 and 8 so the function should return true. Is there a function out there that can do this?
Thank you.