SyntaxFix
Write A Post
Hire A Developer
Questions
Look at array_intersect().
$containsSearch = count(array_intersect($search_this, $all)) == count($search_this);