Hướng dẫn dùng punycode convert trong PHP
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.2, PECL idn >= 0.1) idn_to_utf8 — Convert domain name from IDNA ASCII to Unicode Procedural style idn_to_utf8( Parametersdomain Domain to convert in an IDNA ASCII-compatible format. flags Conversion options - combination of IDNA_* constants (except IDNA_ERROR_* constants). variant Either idna_info This parameter can be used only if Return Values The domain name in Unicode, encoded in UTF-8, or Changelog
ExamplesExample #1 idn_to_utf8() example
The above example will output: kushik.com ¶ 9 years ago
decodeIDN($name) {
|