|
Ds\PriorityQueue::toArrayConverts the queue to an array. Beschreibung
public array Ds\PriorityQueue::toArray
( void
)
Converts the queue to an array.
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteAn array containing all the values in the same order as the queue. BeispieleBeispiel #1 Ds\PriorityQueue::toArray example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(3) {
[0]=>
string(1) "b"
[1]=>
string(1) "c"
[2]=>
string(1) "a"
}
|