getdns Functions
PHP Manual


(PECL getdns >= 0.10.0)

php_getdns_display_ip_addressConvert an IP address in bindata format to a character string.


string php_getdns_display_ip_address ( string $bindata )

This function converts an IPv4 or IPv6 address in bindata (binary string) format to a presentation-friendly character string.



A character string containing an IP address in bindata (binary string) format.

Return Values

This function returns an IP address in character string format. NULL is returned if any conversion or memory allocation errors are encountered.

getdns Functions
PHP Manual