SplPriorityQueue::setExtractFlags
(PHP 5 >= 5.3.0, PHP 7)
SplPriorityQueue::setExtractFlags — Sets the mode of extraction
Description
public SplPriorityQueue::setExtractFlags ( int $flags ) : void
Parameters
-
flags
-
Defines what is extracted by SplPriorityQueue::current(), SplPriorityQueue::top() and SplPriorityQueue::extract().
SplPriorityQueue::EXTR_DATA
(0x00000001): Extract the dataSplPriorityQueue::EXTR_PRIORITY
(0x00000002): Extract the prioritySplPriorityQueue::EXTR_BOTH
(0x00000003): Extract an array containing both
The default mode is
SplPriorityQueue::EXTR_DATA
.
Return Values
No value is returned.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/splpriorityqueue.setextractflags.php