ip2long
ip2long
(PHP 4, PHP 5, PHP 7)
ip2long — Converts a string containing an (IPv4) Internet Protocol dotted address into a long integer
Description
int ip2long ( string $ip_address )
The function ip2long() generates an long integer representation of IPv4 Internet network address from its Internet standard format (dotted string) representation.
ip2long() will also work with non-complete IP addresses. Read 登录查看完整内容