|
Ds\Set::copyReturns a shallow copy of the set. Description
public Ds\Set Ds\Set::copy
( void
)
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
<?php 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 ) |