* @return bool
*/
public static function ipMatchesCidrRange($testIp, $rangeIp, $cidr)
{
$range = static::getIpCidrMatchRange($rangeIp, $cidr);
if (is_string($range))
{
return ($testIp === $range);
}
else
{
return static::ipMatchesRange($testIp, $range[0], $range[1]);
}
}