PHP » GoLang |
login |
register |
about
|
GoLang Ds\Collection::copy
request it (534)
GoLang replacement for PHP's Ds\Collection::copy
[edit | history]
Ds\Collection::copy(PECL ds >= 1.0.0) Ds\Collection::copy — Returns a shallow copy of the collection Description
abstract public Ds\Collection Ds\Collection::copy
( void
)
Returns a shallow copy of the collection. ParametersThis function has no parameters. Return ValuesReturns a shallow copy of the collection. ExamplesExample #1 Ds\Collection::copy() example
<?phpThe above example will output something similar to:
Ds\Vector Object
(
[0] => 1
[1] => 2
[2] => 3
)
Ds\Vector Object
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
)
|
more
Most requested
more
Last requests
|