判断邮箱帐号

1
2
3
4
5
//邮箱校验
public static function isEmail($email) {
$pattern = '/^([a-z0-9]*[-_]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\\.][a-z]{2,3}([\\.][a-z]{2})?$/i';
return !!preg_match($pattern, $email);
}
文章目录
,