PriorityQueue::setExtractFlags

(Available since version 1.0)

PriorityQueue::setExtractFlagsSets the mode of extraction

Description

public int PriorityQueue::setExtractFlags ( int $flags )

Defines what is extracted by PriorityQueue::current(), PriorityQueue::top() and PriorityQueue::extract().

The options are as follows:

  • PriorityQueue::EXTR_DATA (0x00000001): Extract the data
  • PriorityQueue::EXTR_PRIORITY (0x00000002): Extract the priority
  • PriorityQueue::EXTR_BOTH (0x00000003): Extract an array containing both

Note:

The default mode is: PriorityQueue::EXTR_DATA

Parameters

flags

The desired extraction mode.

Return Values

The new extraction mode.

To Top