PHP 8.1.28 Released!

SplPriorityQueue::top

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SplPriorityQueue::topキューの先頭のノードを取り出す

説明

public SplPriorityQueue::top(): mixed

パラメータ

この関数にはパラメータはありません。

戻り値

先頭のノードの値あるいは優先順位 (あるいはその両方) を、抽出フラグの設定に応じて返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top