/** * Return true if the $ip given is a true CIDR block. * * A true CIDR block is one where the $ip given is the actual Network * address and broadcast matches the prefix appropriately. */ public static function cidr_is_true($ip) { $ip = new CIDR($ip); return $ip->isTrueCidr(); }