Email Validation in PHP

Email Validation in PHP

function email_validation($email){

if(ereg(“^[^@ ]+@[^@ ]+.[^@ ]+$”,$email,$trashed)){

return true;

}else{

return false;

}

}

Leave a Comment

Your email address will not be published. Required fields are marked *