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;
}
}
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;
}
}