protected function getIndices($start, $stop, $step)
    {
        $indices = [];

        if ($step > 0)
        {
            for ($i = $start; $i < $stop; $i += $step)
            {
                $indices[] = $i;
            }
        }
        else
        {
            for ($i = $start; $i > $stop; $i += $step)
            {
                $indices[] = $i;
            }
        }

        return $indices;
    }
protected function getIndices($start, $stop, $step)
    {
        $indices = [];

        if ($step > 0)
        {
            for ($i = $start; $i < $stop; $i += $step)
            {
                $indices[] = $i;
            }
        }
        else
        {
            for ($i = $start; $i > $stop; $i += $step)
            {
                $indices[] = $i;
            }
        }

        return $indices;
    }
protected function getIndices ( $ start , $ stop , $ step ) { $ indices = [ ] ; if ( $ step > 0 ) { for ( $ i = $ start ; $ i < $ stop ; $ i += $ step ) { $ indices [ ] = $ i ; } } else { for ( $ i = $ start ; $ i > $ stop ; $ i += $ step ) { $ indices [ ] = $ i ; } } return $ indices ; }
Returns an array of indices to be included in the slice.

@param int $start Start index of the slice
@param int $stop  Boundary for the slice
@param int $step  Rate at which to include characters

@return array An array of indices in the string
Returns an array of indices to be included in the slice .