Return to Snippet

Revision: 4577
at January 11, 2008 13:42 by ajbatac


Initial Code
function valid_email($str)
{
	return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE;
}

Initial URL

                                

Initial Description

                                

Initial Title
Valid email address

Initial Tags
email, validation

Initial Language
PHP