Home > PHP > Function > > idn_to_utf8()

idn_to_utf8()

idn_to_utf8 - Convert domain name from IDNA ASCII to Unicode.

Syntax

string idn_to_utf8 (string $domain, int $options)

Arguments

  • domain - Domain to convert in IDNA ASCII-compatible format.
  • options - Conversion options - combination of IDNA_* constants.

Description

Procedural style

Version

PHP 5.3.0, PECL intl >= 1.0.2

Return value

Domain name in Unicode. In PHP5, domain name will be in UTF-8.