SplPriorityQueue::setExtractFlags

(PHP 5 >= 5.3.0, PHP 7) Sets the mode of extraction public void SplPriorityQueue::setExtractFlags ( int $flags ) Parameters: 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::rewind

(PHP 5 >= 5.3.0, PHP 7) Rewind iterator back to the start (no-op) public void SplPriorityQueue::rewind ( void ) This rewinds the iterator to the beginning. This is a no-op for heaps as the iterator is virtual and in fact never moves from the top of the heap. Returns: No value is returned.

SplPriorityQueue::recoverFromCorruption

(PHP 5 >= 5.3.0, PHP 7) Recover from the corrupted state and allow further actions on the queue. public void SplPriorityQueue::recoverFromCorruption ( void ) Returns: No value is returned.

SplPriorityQueue::next

(PHP 5 >= 5.3.0, PHP 7) Move to the next node public void SplPriorityQueue::next ( void ) Extracts the top node from the queue. Returns: No value is returned.

SplPriorityQueue::key

(PHP 5 >= 5.3.0, PHP 7) Return current node index public mixed SplPriorityQueue::key ( void ) This function returns the current node index Returns: The current node index.

SplPriorityQueue::isEmpty

(PHP 5 >= 5.3.0, PHP 7) Checks whether the queue is empty. public bool SplPriorityQueue::isEmpty ( void ) Returns: Returns whether the queue is empty.

SplPriorityQueue::insert

(PHP 5 >= 5.3.0, PHP 7) Inserts an element in the queue by sifting it up. public void SplPriorityQueue::insert ( mixed $value, mixed $priority ) Insert value with the priority priority in the queue. Parameters: value The value to insert. priority The associated priority. Returns: No value is returned.

SplPriorityQueue::extract

(PHP 5 >= 5.3.0, PHP 7) Extracts a node from top of the heap and sift up. public mixed SplPriorityQueue::extract ( void ) Returns: The value or priority (or both) of the extracted node, depending on the extract flag.

SplPriorityQueue::current

(PHP 5 >= 5.3.0, PHP 7) Return current node pointed by the iterator public mixed SplPriorityQueue::current ( void ) Get the current datastructure node. Returns: The value or priority (or both) of the current node, depending on the extract flag.

SplPriorityQueue::count

(PHP 5 >= 5.3.0, PHP 7) Counts the number of elements in the queue. public int SplPriorityQueue::count ( void ) Returns: Returns the number of elements in the queue.