Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

gethostbyaddr

Description

The gethostbyaddr of Network for PHP get the Internet host name corresponding to a given IP address.

Syntax

gethostbyaddr(
    string $ip
): string|false

Parameters

ip

The host IP address.

Return

Returns the host name on success, the unmodified ip on failure, or false on malformed input.

Examples

1 · ip

<?

$ip = '185.85.0.29';

$return = gethostbyaddr($ip);

echo $return;

?>
ip-185-85-0-29.ax5z.com
HomeMenu