W3cubDocs

/PHP

SplPriorityQueue::setExtractFlags

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

SplPriorityQueue::setExtractFlagsSets the mode of extraction

Description

public 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.

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/splpriorityqueue.setextractflags.php