static bool checkIp(string $requestIp, string|array $ips)
Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets.
static bool checkIp(string $requestIp, string|array $ips)
Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets.
string | $requestIp | IP to check |
string|array | $ips | List of IPs or subnets (can be a string if only a single one) |
bool | Whether the IP is valid |
Designed by : w10schools
service@w10schools.com
Please login to continue.