PHP.nl

long2ip

long2ip

Converts a long integer address into a string in (IPv4) Internet standard dotted format

string **long2ip** int $ip

The function generates an Internet address in dotted format (i.e.: aaa.bbb.ccc.ddd) from the long integer representation. long2ip

ipA proper address representation in long integer.

Returns the Internet IP address as a . string

Opmerking: > On 32-bit architectures, casting integer representations of IP addresses from to will not give correct results for numbers which exceed . string``int``PHP_INT_MAX

ip2long