PHP in_array question when comparing 2 arrays...

I'm doing PHP in_array as such:

in_array(Array ( [0] => 38 [1] => 40 ) ,Array ( [0] => 38 [1] => 39 [2] => 40 ) )

but it never returns true, even though according to the docs it should...

What am I doing wrong, and anyway to make it work? I'm comparing a bunch of arrays...
interclubsAsked:
Who is Participating?
 
interclubsConnect With a Mentor Author Commented:
Got it to work:

if(count(array_intersect($Array1,$Array2)) == count($Array1))  { echo 'yes';}
0
All Courses

From novice to tech pro — start learning today.