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