Tutorial Email Address Validation
Simple $email = 'mail@example.com'; $validation = filter_var($email, FILTER_VALIDATE_EMAIL); if ( $validation ) $output = 'prope...
https://iskablogs.blogspot.com/2014/03/tutorial-email-address-validation.html
Simple
$email = 'mail@example.com';
$validation = filter_var($email, FILTER_VALIDATE_EMAIL);
if ( $validation ) $output = 'proper email address';
else $output = 'wrong email address';
echo $output;
Advanced
This function doesn't only check if the format of the given email address is correct, it also performs a test if the host is existing.
$email="test@geemail.com";
if (
$email = 'mail@example.com';
$validation = filter_var($email, FILTER_VALIDATE_EMAIL);
if ( $validation ) $output = 'proper email address';
else $output = 'wrong email address';
echo $output;
Advanced
This function doesn't only check if the format of the given email address is correct, it also performs a test if the host is existing.
$email="test@geemail.com";
if (