1

validatemail

validate_mail
SYNOPSIS

validate_mail($email)

DESCRIPTION
CODE
  1. function validate_mail($email) {
  2.     return preg_match('/^[a-z0-9._%-]+@[a-z0-9.-]+\.[a-z]{2,}$/', $email);
  3. }

Comments

To add a comment, click here.