PHP验证邮箱代码:

function isEmail($email) {
return strlen($email) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $email);
}

http://www.cnblogs.com/roucheng/

05-11 13:55