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
Links
Network
- checkdnsrr
- closelog
- dns_check_record
- dns_get_mx
- dns_get_record
- fsockopen
- gethostbyaddr
- gethostbyname
- gethostbynamel
- gethostname
- getmxrr
- getprotobyname
- getprotobynumber
- getservbyname
- getservbyport
- header
- header_register_callback
- header_remove
- headers_list
- headers_sent
- http_response_code
- inet_ntop
- inet_pton
- ip2long
- openlog
- pfsockopen
- setcookie
- setrawcookie
- socket_get_status
- socket_set_blocking
- socket_set_timeout
- syslog