getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

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


string php_getdns_convert_alabel_to_ulabel ( string $string )

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



A string representing an IDN in A-label format.

Return Values

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

getdns Functions
PHP Manual