checkIp()
checkIp(string $requestIp, string|array $ips) : boolean
Checks if an IPv4 or IPv6 address is contained in the list of given IPs or subnets.
Parameters
| string | $requestIp | IP to check |
| string|array | $ips | List of IPs or subnets (can be a string if only a single one) |
Returns
boolean —Whether the IP is valid