Created
September 14, 2013 20:50
-
-
Save mikeerickson/6565523 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
/** | |
* | |
* PHP validate email | |
* http://www.webtoolkit.info/ | |
* | |
**/ | |
function isValidEmail($email){ | |
return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment