PriorityQueue::insert

(Available since version 1.0)

PriorityQueue::insertInserts an element in the queue

Description

public bool PriorityQueue::insert ( mixed $value , mixed $priority )

Insert value with the priority priority in the queue.

Parameters

value

The value to insert.

priority

The associated priority.

Return Values

TRUE.

To Top