Created
July 19, 2013 07:43
-
-
Save srttk/6037416 to your computer and use it in GitHub Desktop.
PHP_Filter_validation
This file contains 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
//Email validation | |
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { | |
$error="Invalid email addrress"; | |
} | |
// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment