phpday 2027 - Call for Papers

SplPriorityQueue::setExtractFlags

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

SplPriorityQueue::setExtractFlags — Sets the mode of extraction

Description

public function SplPriorityQueue::setExtractFlags(int $flags): int

Parameters

flags

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

The default mode is SplPriorityQueue::EXTR_DATA.

Return Values

Returns the flags of extraction.

See Also

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top