EmailValidator\Validator::hostnameFromEmail PHP Method

hostnameFromEmail() private method

Get the hostname form an email address
private hostnameFromEmail ( string $email ) : string | null
$email string Address
return string | null
    private function hostnameFromEmail($email)
    {
        $parts = explode('@', $email);
        if (count($parts) == 2) {
            return strtolower($parts[1]);
        }
        return null;
    }