Ip
class Ip (View source)
A utility class for dealing with IP addresses.
Methods
static bool
cidrMatch(string $ip, string $range)
Matches a CIDR range pattern against an IP
Details
static bool
cidrMatch(string $ip, string $range)
Matches a CIDR range pattern against an IP
The range can contain IPv4 and IPv6 addresses (including IPv6 wrapped IPv4 addresses).