PHP function to validate Email Address
Simple php function to validate email address. Helps in validating email address in php.
function isValidEmail($email) {
if(preg_match("/[a-zA-Z0-9_-.+]+@[a-zA-Z0-9-]+.[a-zA-Z]+/", $email) > 0)
return true;
else
return false;
}
No comments:
Post a Comment