Return to Snippet

Revision: 8109
at September 3, 2008 07:04 by stancell


Updated Code
function is_email_valid($email)
{
    return (preg_match("/[-a-zA-Z0-9_.+][email protected][a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $email) > 0) ? true : false;
}

Revision: 8108
at September 3, 2008 07:03 by stancell


Updated Code
function is_email_valid($email)
{
    return preg_match("/[-a-zA-Z0-9_.+][email protected][a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $email) > 0) ? true : false;
}

Revision: 8107
at September 3, 2008 07:02 by stancell


Initial Code
function is_email_valid($email)
{
	return preg_match("/[-a-zA-Z0-9_.+][email protected][a-zA-Z0-9-]{2,}\.[a-zA-Z]{2,}/", $email) > 0) ? true : false;
}

Initial URL


Initial Description


Initial Title
Is email valid. Validate email address in PHP

Initial Tags
email

Initial Language
PHP