public static function domainToASCII($domain)
    {
        $asciiDomain = lib\HostProcessing::parseHost(TypeHinter::to('USVString', $domain), true);
        return is_string($asciiDomain) ? $asciiDomain : '';
    }
public static function domainToASCII($domain)
    {
        $asciiDomain = lib\HostProcessing::parseHost(TypeHinter::to('USVString', $domain), true);
        return is_string($asciiDomain) ? $asciiDomain : '';
    }
public static function domainToASCII ( $ domain ) { $ asciiDomain = lib \ HostProcessing :: parseHost ( TypeHinter :: to ( 'USVString' , $ domain ) , true ) ; return is_string ( $ asciiDomain ) ? $ asciiDomain : '' ; }
Converts domain name to IDNA ASCII form.
@deprecated 5.0.0 URL::domainToASCII() has been removed from the URL Standard specification.
@see \esperecyan\url\lib\HostProcessing::domainToASCII()
@link https://github.com/whatwg/url/commit/2bd0f59b98024921ab90e628b7a526cca5abcb5f
Remove URL.domainToASCII and domainToUnicode · whatwg/url@2bd0f59y
@param string $domain
@return string Returns an empty string if $domain is an IPv6 address or an invalid domain.
Converts domain name to IDNA ASCII form .