|
Ds\PriorityQueue::copyReturns a shallow copy of the queue. Beschreibung
public Ds\PriorityQueue Ds\PriorityQueue::copy
( void
)
Returns a shallow copy of the queue. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns a shallow copy of the queue. BeispieleBeispiel #1 Ds\PriorityQueue::copy example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Ds\PriorityQueue Object
(
[0] => b
[1] => c
[2] => a
)
|