Ds\Collection::copyReturns a shallow copy of the collection Description
public Ds\Collection Ds\Collection::copy()
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
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 ) |