Ds\Pair::copyReturns a shallow copy of the pair Description
public Ds\Pair Ds\Pair::copy()
Returns a shallow copy of the pair. ParametersThis function has no parameters. Return ValuesReturns a shallow copy of the pair. ExamplesExample #1 Ds\Pair::copy example
The above example will output something similar to: Ds\Pair Object ( [key] => x [value] => 1 ) Ds\Pair Object ( [key] => a [value] => 1 ) |