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