getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_convert_ulabel_to_alabelConvert an Internationalized Domain Name from U-label format to A-label format.


string php_getdns_convert_ulabel_to_alabel ( string $string )

This function converts an input string in Internationalized Domain Name (IDN) U-label format to IDN A-label format. See » RFC 5890 for a description of the IDN label formats.



A string representing an IDN in U-label format.

Return Values

This function returns a string representing an IDN in A-label format. NULL is returned if any conversion or memory allocation errors are encountered.

getdns Functions
PHP Manual