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

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

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

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

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