$haystack = array(...); $target = array('foo', 'bar'); if(count(array_intersect($haystack, $target)) == count($target)){ // all of $target is in $haystack }