check if elements of one array are in another php key value code example
Example: check if array value exists in another array php
$result = !empty(array_intersect($people, $criminals));
$result = !empty(array_intersect($people, $criminals));