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