i have this function
function filtermail($email){
if(filter_var($email,FILTER_VALIDATE_EMAIL)){
$mail2 = explode('www.',$email);
if(isset($mail2[1])){
return 'false2';
}
else{
return true;
}
}
else{
return false;
}
}
but when i give big.ma3ih@gmail.com to it
its return "1"!
and this code run
if($checkmail == 'false2'){
echo 'ایمیل www ندارد.';
die();
}
what is my problem !