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

long2ip

Description

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

Syntax

long2ip(
    int $long
): string

Parameters

long

A proper address representation in long integer.

Return

Returns the Internet IP address as a string.

Examples

1 · long

<?

$long = 3109355549;

$return = long2ip($long);

echo $return;
185.85.0.29