Convert a long integer address into a string in IPv4 format:
<?php
echo(long2ip(344294967296));
?>
Try it Yourself »
The long2ip() function converts a long integer address into a string in IPv4 format.
long2ip(
address)
Parameter | Description |
---|---|
address | Required. Specifies a long integer that represents an IP address |
Return Value: | The IP address as a string |
---|---|
PHP Version: | 4.0+ |
PHP Changelog: | PHP 7.1: Changed the address parameter from string to integer. |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!