Originally posted by something else
View Post
PHP Code:
$email = "foobar@ymail.con";
$list = array("gmail","google","yahoo","ymail");
$email = explode("@",$email);
$email = str_replace($list,"@",$email[1]);
if(substr_count($email,"@")>0){
//ok
}else{
//not ok
}
Leave a comment: