Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

function Utils::idnToAsci

Return value

string|false

1 call to Utils::idnToAsci()
Utils::idnUriConvert in vendor/guzzlehttp/guzzle/src/Utils.php
@internal

File

vendor/guzzlehttp/guzzle/src/Utils.php, line 376

Class

Utils

Namespace

GuzzleHttp

Code

private static function idnToAsci(string $domain, int $options, ?array &$info = []) {
    if (\function_exists('idn_to_ascii') && \defined('INTL_IDNA_VARIANT_UTS46')) {
        return \idn_to_ascii($domain, $options, \INTL_IDNA_VARIANT_UTS46, $info);
    }
    throw new \Error('ext-idn or symfony/polyfill-intl-idn not loaded or too old');
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal