Created
February 22, 2014 15:24
-
-
Save Shaz3e/9156537 to your computer and use it in GitHub Desktop.
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 | |
functino isValidEmail($email){ | |
$checkEmail = "/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/"; | |
// check if its valid email return true | |
if(preg_match($checkEmail,$email) > 0){ | |
return true; | |
}else{ | |
return false; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment