$attr_values){ foreach($attr_values as $match){ foreach($entries as $id => $entry){ if(isset($entry[$attr_name])){ $test = $entry[$attr_name]; if(!is_array($test)) $test = array($test); if(in_array_strict($match, $test)) unset($entries[$id]); } } } } } return(array_values($entries)); } } ?>