GoLang SplPriorityQueue::setExtractFlags

request it (77)
GoLang replacement for PHP's SplPriorityQueue::setExtractFlags [edit | history]

Do you know a GoLang replacement for PHP's SplPriorityQueue::setExtractFlags? Write it!

PHP SplPriorityQueue::setExtractFlags

PHP original manual for SplPriorityQueue::setExtractFlags [ show | php.net ]


(PHP 5 >= 5.3.0, PHP 7)

SplPriorityQueue::setExtractFlagsSets the mode of extraction


public void SplPriorityQueue::setExtractFlags ( int $flags )



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

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

The default mode is SplPriorityQueue::EXTR_DATA.

Return Values

No value is returned.