array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.long2ip.php', 1 => 'long2ip', ), 'up' => array ( 0 => 'ref.network.php', 1 => 'Network Functions', ), 'prev' => array ( 0 => 'function.ip2long.php', 1 => 'ip2long', ), 'next' => array ( 0 => 'function.net-get-interfaces.php', 1 => 'net_get_interfaces', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/network/functions/long2ip.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
long2ip — Converts a long integer address into a string in (IPv4) Internet standard dotted format
The function long2ip() generates an Internet address in dotted format (i.e.: aaa.bbb.ccc.ddd) from the long integer representation.
ip
A proper address representation in long integer.
Returns the Internet IP address as a string, or false
on failure.
Note:
On 32-bit architectures, casting integer representations of IP addresses from string to int will not give correct results for numbers which exceed
PHP_INT_MAX
.