src/IpRange/Ipv4Range.php
private function parseWildcardRange($range, $pos)
    {
        $prefix = substr($range, 0, $pos - 1);
        $parts  = explode('.', $prefix);
        $partsCount = 4 - count($parts);
        return array(
            ip2long(implode('.', array_merge($parts, array_fill(0, $partsCount, 0)))),
            ip2long(implode('.', array_merge($parts, array_fill(0, $partsCount, 255))))
        );
    }
private function parseWildcardRange($range, $pos)
    {
        $prefix = substr($range, 0, $pos - 1);
        $parts  = explode('.', $prefix);
        $partsCount = 4 - count($parts);
        return array(
            ip2long(implode('.', array_merge($parts, array_fill(0, $partsCount, 0)))),
            ip2long(implode('.', array_merge($parts, array_fill(0, $partsCount, 255))))
        );
    }
private function parseWildcardRange ( $ range , $ pos ) { $ prefix = substr ( $ range , 0 , $ pos - 1 ) ; $ parts = explode ( '.' , $ prefix ) ; $ partsCount = 4 - count ( $ parts ) ; return array ( ip2long ( implode ( '.' , array_merge ( $ parts , array_fill ( 0 , $ partsCount , 0 ) ) ) ) , ip2long ( implode ( '.' , array_merge ( $ parts , array_fill ( 0 , $ partsCount , 255 ) ) ) ) ) ; }
Parses a wildcard notation range.
@param string $range The wildcard notation range.
@param int $pos The integer position of the wildcard within the range string.
@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 wildcard notation range .