Function matchIPtoCIDR
Detect if a IP is in a CIDR address - returns true or false
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/QueryString.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/QueryString.php
string |
$ip_address |
IP address to check |
string |
$cidr_address |
CIDR address to verify |
boolean
|
Whether the IP matches the CIDR |