SplPriorityQueue::setExtractFlags
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SplPriorityQueue::setExtractFlags — Sets the mode of extraction
参数
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
.
返回值
Returns the flags of extraction.
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/splpriorityqueue.setextractflags.php