/*** 校验邮箱格式* @param $utfstr*/function check_email($email='123@qq.com'){$email=$email;$pattern="/([a-z0-9]*[-_.]?[a-z0-9]+)*@([a-z0-9]*[-_]?[a-z0-9]+)+[.][a-z]{2,3}([.][a-z]{2})?/i";if(preg_match($pattern,$email)){$remsg='邮箱验证通过!';}else{$remsg='邮箱格式错误!';}return $remsg;}
/*** 判断email格式是否正确* @param $email*/function is_email($email) {return strlen($email) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $email);}
