Created
June 15, 2013 05:14
-
-
Save tmbritton/5786995 to your computer and use it in GitHub Desktop.
Validate Email Address - PHP
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 validate_email($email) { | |
$filtered = filter_var($email, FILTER_VALIDATE_EMAIL); | |
if ($filtered == $email) { | |
return TRUE; | |
} | |
return FALSE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment