|
Ds\Set::copyReturns a shallow copy of the set Description
public Ds\Set Ds\Set::copy()
Returns a shallow copy of the set. ParametersThis function has no parameters. Return ValuesReturns a shallow copy of the set. ExamplesExample #1 Ds\Set::copy example
The above example will output something similar to: Ds\Set Object ( [0] => 1 [1] => 2 [2] => 3 ) Ds\Set Object ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 ) |