<?php
function check_email($email){
$preg="/^\w+([-_.]\w+)*@\w+([-_.]\w+)*(\.\w+){0,3}$/i";
$res=preg_match($preg,$email);
return $res;//匹配成功返回1,匹配失败返回0
}
$result= check_email('847.760992@qq.com');
var_dump($result);
?>
来源:CSDN
作者:living_ren
链接:https://blog.csdn.net/living_ren/article/details/79504177