php8.5
Home/ Manual/ spl / splpriorityqueue/ SplPriorityQueue::extract

SplPriorityQueue::extract

PHP function Edit on GitHub ✎

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

Extracts a node from top of the heap and sift up

Description

SplPriorityQueue::extract(): mixed

Parameters Parameters

Return Values

The value or priority (or both) of the extracted node, depending on the extract flag.

Source: reference/spl/splpriorityqueue/extract.xml · from the official PHP manual (php/doc-en)