Created
March 19, 2014 07:16
-
-
Save jk2K/9636889 to your computer and use it in GitHub Desktop.
验证邮箱是否正确
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isemail($email) { | |
return strlen($email) > 6 && strlen($email) <= 32 && preg_match("/^([A-Za-z0-9\-_.+]+)@([A-Za-z0-9\-]+[.][A-Za-z0-9\-.]+)$/", $email); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment