Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

long2ip

Description

The long2ip of Network for PHP converts an long integer address into a string in (IPv4) Internet standard dotted format.

Syntax

long2ip ( int $proper_address ) : string

Parameters

proper_address

A proper address representation in long integer.

Return

Returns the Internet IP address as a string.

Examples

1

<?

$long = '3109355549';
$ip = long2ip($long);
echo $ip;

?>
185.85.0.29
HomeMenu