static bool checkIp6(string $requestIp, string $ip)
Compares two IPv6 addresses.
In case a subnet is given, it checks if it contains the request IP.
static bool checkIp6(string $requestIp, string $ip)
Compares two IPv6 addresses.
In case a subnet is given, it checks if it contains the request IP.
string | $requestIp | IPv6 address to check |
string | $ip | IPv6 address or subnet in CIDR notation |
bool | Whether the IP is valid |
RuntimeException | When IPV6 support is not enabled |
https://github.com/dsp/v6tools |
Designed by : w10schools
service@w10schools.com
Please login to continue.