ip_to_long()
ip_to_long(string $ip_address) : string|integer
IP to long.
Convert a given IP address (v4 or v6) to its 'long integer' representation.
Parameters
string | $ip_address | IPv4 or IPv6 address. |
Returns
string|integer —Long integer representation of the address.