long2ip

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

PHP

Home Menu