getdns Functions
PHP Manual

php_getdns_display_ip_address

(PECL getdns >= 0.10.0)

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

Description

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.

Parameters

bindata

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