public static function createRanges(
        int $from,
        int $to,
        int $incremental
    ): array {
        $ranges = [];
        while ($from < $to) {
            $nextTo = $from + $incremental;
            $ranges[] = $from.self::SEPARATOR.$nextTo;
            $from = $nextTo;
        }

        return $ranges;
    }
public static function createRanges(
        int $from,
        int $to,
        int $incremental
    ): array {
        $ranges = [];
        while ($from < $to) {
            $nextTo = $from + $incremental;
            $ranges[] = $from.self::SEPARATOR.$nextTo;
            $from = $nextTo;
        }

        return $ranges;
    }
public static function createRanges ( int $ from , int $ to , int $ incremental ) : array { $ ranges = [ ] ; while ( $ from < $ to ) { $ nextTo = $ from + $ incremental ; $ ranges [ ] = $ from . self :: SEPARATOR . $ nextTo ; $ from = $ nextTo ; } return $ ranges ; }
Create a set of ranges given a minimum, a maximum and an incremental.

@param int $from
@param int $to
@param int $incremental

@return array
Create a set of ranges given a minimum a maximum and an incremental .