I am trying to check if value of an array $spam is present in array $get_mail. I have following code, but it doesnt seem to work or I dont understand it properly.
$spam_exists = !array_diff($spam, $get_mail);
if ($spam_exists !== FALSE) { ... }
Any idea why this doesnt work? Thank you for any reply.