Ds\Collection::copyReturns 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
<?php The 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 ) |