static bool checkIp4(string $requestIp, string $ip)
Compares two IPv4 addresses.
In case a subnet is given, it checks if it contains the request IP.
static bool checkIp4(string $requestIp, string $ip)
Compares two IPv4 addresses.
In case a subnet is given, it checks if it contains the request IP.
string | $requestIp | IPv4 address to check |
string | $ip | IPv4 address or subnet in CIDR notation |
bool | Whether the request IP matches the IP, or whether the request IP is within the CIDR subnet |
Designed by : w10schools
service@w10schools.com
Please login to continue.