if one array contains a value another doesn't code example Example: check if array values exists in another array $result = !empty(array_intersect($people, $criminals));