IDN 함수 목록
PHP Manual

idn_to_ascii

(PHP 5 >= 5.3.0, PECL intl >= 1.0.2)

idn_to_asciiConvert domain name to IDNA ASCII form.

설명

Procedural style

string idn_to_ascii ( string $domain [, int $options ] )

This function converts Unicode domain name to IDNA ASCII-compatible format.

인수

domain

Domain to convert. In PHP 5 must be UTF-8 encoded.

options

Conversion options - combination of IDNA_* constants.

반환값

Domain name encoded in ASCII-compatible form.

예제

Example #1 idn_to_ascii() example

<?php

echo idn_to_ascii('täst.de'); 

?>

위 예제의 출력:

xn--tst-qla.de

참고


IDN 함수 목록
PHP Manual