Created
February 3, 2018 07:00
-
-
Save amitmerchant1990/62ae9a7a5f966133d0f2a5ee9f6b2f16 to your computer and use it in GitHub Desktop.
Validate Email (PHP)
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
<?php | |
if(!filter_var($emailAddress, FILTER_VALIDATE_EMAIL)) { | |
//Email is invalid. Show the user an error message. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment