PHP 8.1.28 Released!

SplPriorityQueue::insert

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

SplPriorityQueue::insertキューに要素を挿入する

説明

public SplPriorityQueue::insert(mixed $value, mixed $priority): true

value を優先順位 priority でキューに挿入します。

パラメータ

value

挿入する値。

priority

関連づける優先順位。

戻り値

常に true を返します。

add a note

User Contributed Notes

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