lib/db/cortex.php
public function slice($offset, $limit=null) {
		$this->rewind();
		$i=0;
		$del=array();
		while ($this->valid()) {
			if ($i < $offset)
				$del[]=$this->key();
			elseif ($i >= $offset && $limit && $i >= ($offset+$limit))
				$del[]=$this->key();
			$i++;
			$this->next();
		}
		foreach ($del as $ii)
			unset($this[$ii]);
	}
public function slice($offset, $limit=null) {
		$this->rewind();
		$i=0;
		$del=array();
		while ($this->valid()) {
			if ($i < $offset)
				$del[]=$this->key();
			elseif ($i >= $offset && $limit && $i >= ($offset+$limit))
				$del[]=$this->key();
			$i++;
			$this->next();
		}
		foreach ($del as $ii)
			unset($this[$ii]);
	}
public function slice ( $ offset , $ limit = null ) { $ this -> rewind ( ) ; $ i = 0 ; $ del = array ( ) ; while ( $ this -> valid ( ) ) { if ( $ i < $ offset ) $ del [ ] = $ this -> key ( ) ; elseif ( $ i >= $ offset && $ limit && $ i >= ( $ offset + $ limit ) ) $ del [ ] = $ this -> key ( ) ; $ i ++ ; $ this -> next ( ) ; } foreach ( $ del as $ ii ) unset ( $ this [ $ ii ] ) ; }
slice the collection
@param $offset
@param null $limit
slice the collection