public static function range($max, $start = 1, $step = 1)
    {
        if ($step < 1) {
            return [];
        }

        $array = [];
        for ($i = $start; $i <= $max; $i += $step) {
            $array[] = $i;
        }

        return $array;
    }
public static function range($max, $start = 1, $step = 1)
    {
        if ($step < 1) {
            return [];
        }

        $array = [];
        for ($i = $start; $i <= $max; $i += $step) {
            $array[] = $i;
        }

        return $array;
    }
public static function range ( $ max , $ start = 1 , $ step = 1 ) { if ( $ step < 1 ) { return [ ] ; } $ array = [ ] ; for ( $ i = $ start ; $ i <= $ max ; $ i += $ step ) { $ array [ ] = $ i ; } return $ array ; }
Fill an array with a range of numbers.

@param int $max   The maximum ending number
@param int $start The start number
@param int $step  The stepping

@return array
Fill an array with a range of numbers .