Jun
9
2013

Validate user Email

/**
 * Validate email addresses
 * @access public
 * @param string email
 * @return bool
 */
function valid_email( $email )
{
    if( filter_var( $email, FILTER_VALIDATE_EMAIL ) )
    {
        return true;
    }
    else
    {
        return false;
    }
}

Leave a comment