PHP » GoLang |
login |
register |
about
|
GoLang Ds\Vector::slice
request it (354)
GoLang replacement for PHP's Ds\Vector::slice
[edit | history]
Ds\Vector::slice(PECL ds >= 1.0.0) Ds\Vector::slice — Returns 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
<?php 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 ) |
more
Recently updated
more
Most requested
more
Last requests
|