src/Collection.php
public function slice($offset, $limit = null, $keys = true)
    {
        return new static(\array_slice($this->items, $offset, $limit, $keys));
    }
public function slice($offset, $limit = null, $keys = true)
    {
        return new static(\array_slice($this->items, $offset, $limit, $keys));
    }
public function slice ( $ offset , $ limit = null , $ keys = true ) { return new static ( \ array_slice ( $ this -> items , $ offset , $ limit , $ keys ) ) ; }
Extracts a portion of the Collection, returning a new Collection

By default, preserves the keys.

@link http://ca.php.net/array_slice

@param int      $offset
@param int|null $limit
@param bool     $keys

@return static
Extracts a portion of the Collection returning a new Collection