Email Validation in PHP

Email Validation in PHP

function email_validation($email){

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

return true;

}else{

return false;

}

}