if (filter_var($email, FILTER_VALIDATE_EMAIL)) { //further code if email is valid } else { //further code if email is invalid }