[PHP] Funzione checkMail

/**
*
*  PHP validate email
*  Function will return TRUE if address is valid
*  and FALSE if not.
*
**/

function checkMail($email){
    return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email);
}

TrackBack URI | RSS feed for comments on this post


Leave a reply

You must be logged in to post a comment.