|
Ds\Vector::sliceReturns a sub-vector of a given range Description
public Ds\Vector Ds\Vector::slice(int
$index , int $length = ?)Creates a sub-vector of a given range. Parameters
Return ValuesA sub-vector of the given range. ExamplesExample #1 Ds\Vector::slice example
The above example will output something similar to: Ds\Vector Object ( [0] => c [1] => d [2] => e ) Ds\Vector Object ( [0] => b [1] => c [2] => d ) Ds\Vector Object ( [0] => b [1] => c [2] => d [3] => e ) Ds\Vector Object ( [0] => d [1] => e ) Ds\Vector Object ( [0] => b [1] => c [2] => d ) |