Core/Collection/Collection.php
public function getRange($key, $length) {
        $badKeys = [];

        for ($i = 0; $i < $key; $i++) {
            array_push($badKeys, $i);
        }

        for ($i = $key + $length; $i < count($this->_datas); $i++) {
            array_push($badKeys, $i);
        }

        return array_diff_key($this->_datas, array_flip($badKeys));
    }
public function getRange($key, $length) {
        $badKeys = [];

        for ($i = 0; $i < $key; $i++) {
            array_push($badKeys, $i);
        }

        for ($i = $key + $length; $i < count($this->_datas); $i++) {
            array_push($badKeys, $i);
        }

        return array_diff_key($this->_datas, array_flip($badKeys));
    }
public function getRange ( $ key , $ length ) { $ badKeys = [ ] ; for ( $ i = 0 ; $ i < $ key ; $ i ++ ) { array_push ( $ badKeys , $ i ) ; } for ( $ i = $ key + $ length ; $ i < count ( $ this -> _datas ) ; $ i ++ ) { array_push ( $ badKeys , $ i ) ; } return array_diff_key ( $ this -> _datas , array_flip ( $ badKeys ) ) ; }
Get between 2 keys
@access public
@param $key    int
@param $length int
@return array
@since 3.0
@package Gcs\Framework\Core\Collecion
Get between 2 keys