PHP » GoLang |
login |
register |
about
|
GoLang Ds\Sequence::slice
request it (378)
GoLang replacement for PHP's Ds\Sequence::slice
[edit | history]
Ds\Sequence::slice(PECL ds >= 1.0.0) Ds\Sequence::slice — Returns a sub-sequence of a given range Description
abstract public Ds\Sequence Ds\Sequence::slice
( int
$index
[, int $length
] )Creates a sub-sequence of a given range. Parameters
Return ValuesA sub-sequence of the given range. ExamplesExample #1 Ds\Sequence::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
|