public function isValidEmail(string $email): bool
    {
        return filter_var(filter_var($email, FILTER_SANITIZE_EMAIL), FILTER_VALIDATE_EMAIL) !== false;
    }
public function isValidEmail(string $email): bool
    {
        return filter_var(filter_var($email, FILTER_SANITIZE_EMAIL), FILTER_VALIDATE_EMAIL) !== false;
    }
public function isValidEmail ( string $ email ) : bool { return filter_var ( filter_var ( $ email , FILTER_SANITIZE_EMAIL ) , FILTER_VALIDATE_EMAIL ) !== false ; }
Validate a email address.

@param string $email The email address to validate

@return bool
Validate a email address .