标签:function return public email false
public function isEmail($email){ //验证邮箱
$chars = "/([a-z0-9]*[-_\.]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[\.][a-z]{2,3}([\.][a-z]{2})?/i";
if(preg_match($chars,$email)){
return true;
}else{
return false;
}
}
标签:function return public email false
原文地址:http://jyb2014.blog.51cto.com/9155315/1576528