function search_in_array($search, $source) { return (count(array_intersect($search, $source)) == count($search)); }
Örnek;
$search = array(11,44,55); $source = array(22,55,66,11,77,88,99,44); var_dump(search_in_array($search, $source)); $search = array(11,44,55); $source = array(22,55,66,11,77,88,99,44); var_dump(search_in_array($search, $source));