The SplPriorityQueue class
Guide
Edit on GitHub ✎
The SplPriorityQueue class provides the main functionalities of a prioritized queue, implemented using a max heap.
Intro
The SplPriorityQueue class provides the main functionalities of a prioritized queue, implemented using a max heap.
Note
The order of elements with identical priority is undefined. It may differ from the order in which they have been inserted.
Class synopsis
class SplPriorityQueue implements Iterator implements Countable { }
Predefined Constants
SplPriorityQueue::EXTR_BOTHSplPriorityQueue::EXTR_PRIORITYSplPriorityQueue::EXTR_DATA
Changelog
| Version | Description |
|---|
Splpriorityqueue