src/Traits/Arrays.php
public static function range($start = null, $stop = null, int $step = 1): array
    {
        if ($stop == null && $start != null) {
            $stop = $start;
            $start = 1;
        }

        return range($start, $stop, $step);
    }
public static function range($start = null, $stop = null, int $step = 1): array
    {
        if ($stop == null && $start != null) {
            $stop = $start;
            $start = 1;
        }

        return range($start, $stop, $step);
    }
public static function range ( $ start = null , $ stop = null , int $ step = 1 ) : array { if ( $ stop == null && $ start != null ) { $ stop = $ start ; $ start = 1 ; } return range ( $ start , $ stop , $ step ) ; }
Generate range of values based on start , end and step

@usage __::range(1, 10, 2);
*       >> [1, 3, 5, 7, 9]

@param int|null $start range start
@param int|null $stop  range end
@param int      $step  range step value

@return array range of values
Generate range of values based on start end and step