src/IpRange/Ipv4Range.php
private function parseCidrRange($range)
    {
        list($address, $mask) = explode('/', $range);
        $longAddress = ip2long($address);
        return array(
            $longAddress & (((1 << $mask) - 1) << (32 - $mask)),
            $longAddress | ((1 << (32 - $mask)) - 1)
        );
    }
private function parseCidrRange($range)
    {
        list($address, $mask) = explode('/', $range);
        $longAddress = ip2long($address);
        return array(
            $longAddress & (((1 << $mask) - 1) << (32 - $mask)),
            $longAddress | ((1 << (32 - $mask)) - 1)
        );
    }
private function parseCidrRange ( $ range ) { list ( $ address , $ mask ) = explode ( '/' , $ range ) ; $ longAddress = ip2long ( $ address ) ; return array ( $ longAddress & ( ( ( 1 << $ mask ) - 1 ) << ( 32 - $ mask ) ) , $ longAddress | ( ( 1 << ( 32 - $ mask ) ) - 1 ) ) ; }
Parses a CIDR notation range.
@param string $range The CIDR range.
@return array Returns an array with the first element being the lower
bound of the range and second element being the upper bound.
Parses a CIDR notation range .