Tutorial Email Address Validation

Simple $email = 'mail@example.com'; $validation = filter_var($email, FILTER_VALIDATE_EMAIL); if ( $validation ) $output = 'prope...

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 (

Hot in Week

Popular

Archive

item