PHP function inet_ntop()

Availability in versions: PHP 5.1.0

Converts a packed internet address to a human readable representation

Parameters

Parameter Data type Default value Note
$in_addr string not A 32bit IPv4, or 128bit IPv6 address.

Return values

string

|bool a string representation of the address or false on failure.

Other resources

Official inet-ntop documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.