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