Menu Samaritan's Purse

INET_NTOP

Converts a packed internet address to a human readable representation

SYNTAX

inet_ntop ( string $in_addr ) : string

PARAMETERS

in_addr

A 32bit IPv4, or 128bit IPv6 address.

RETURN

Returns a string representation of the address or FALSE on failure.

EXAMPLES

1

127.0.0.1
::1

PHP