PHP » GoLang |
login |
register |
about
|
GoLang Ds\Deque::slice
request it (369)
GoLang replacement for PHP's Ds\Deque::slice
[edit | history]
Ds\Deque::slice(PECL ds >= 1.0.0) Ds\Deque::slice — Returns a sub-deque of a given range Description
public Ds\Deque Ds\Deque::slice
( int
$index
[, int $length
] )Creates a sub-deque of a given range. Parameters
Return ValuesA sub-deque of the given range. ExamplesExample #1 Ds\Deque::slice() example
<?php The above example will output something similar to: Ds\Deque Object ( [0] => c [1] => d [2] => e ) Ds\Deque Object ( [0] => b [1] => c [2] => d ) Ds\Deque Object ( [0] => b [1] => c [2] => d [3] => e ) Ds\Deque Object ( [0] => d [1] => e ) Ds\Deque Object ( [0] => b [1] => c [2] => d ) |
more
Recently updated
more
Most requested
more
Last requests
|