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