algorithm check if each element in an array is not in another array php code example
Example: check if array value exists in another array php
$result = !empty(array_intersect($people, $criminals));
$result = !empty(array_intersect($people, $criminals));