inet_ntop

 string inet_ntop ( string $in_addr ) 

説明

This function converts a 32bit IPv4, or 128bit IPv6 address (if PHP was built with IPv6 support enabled) into an address family appropriate string representation.

戻り値

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