|
Ds\PriorityQueue::toArrayConverts the queue to an array 説明public array Ds\PriorityQueue::toArray()
Converts the queue to an array.
パラメータこの関数にはパラメータはありません。 戻り値An array containing all the values in the same order as the queue. 例例1 Ds\PriorityQueue::toArray example 上の例の出力は、 たとえば以下のようになります。
array(3) {
[0]=>
string(1) "b"
[1]=>
string(1) "c"
[2]=>
string(1) "a"
}
|