Validate E-mail with PHP


use filter_var to validate e-mail:

filter_var($email_address, FILTER_VALIDATE_EMAIL);

read also this article

Advertisements