function validEmail($email = '') { $result = false; if (strpos($email, '@') !== false) { $arr = explode("@", $email); $result = getmxrr($arr[1], $a); } return $result; } //