how to check if any array is equal to another array inside a if code example
Example: check if array values exists in another array
$result = !empty(array_intersect($people, $criminals));
$result = !empty(array_intersect($people, $criminals));