Sprawdź, czy wartość tablicy istnieje w innej tablicy PHP
$result = !empty(array_intersect($people, $criminals));
Calm Caracal
$result = !empty(array_intersect($people, $criminals));
$containsAllValues = !array_diff($search_this, $all);