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