[PHP] Funzione checkMail
12 apr 2010
/**
*
* 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);
}

Leave a reply
You must be logged in to post a comment.