Return to Snippet

Revision: 36518
at November 22, 2010 19:22 by visudex


Initial Code
<?php

function check_email($email)
{
    if(!filter_var($email, FILTER_VALIDATE_EMAIL))
    {
        return false;
    }
    else
    {
        return true;
    }
}
?>

Initial URL

                                

Initial Description
This snippet is a PHP function that checks if an email address is valid

Initial Title
Validate email address PHP

Initial Tags
email, php

Initial Language
PHP