(PECL ds >= 1.0.0)
Ds\PriorityQueue::pop — Removes and returns the value with the highest priority
public Ds\PriorityQueue::pop ( ) : mixed
Removes and returns the value at the front of the queue, ie. the value with the highest priority.
Note:
Values with equal priority fall back to FIFO (first in first out).
This function has no parameters.
The removed value which was at the front of the queue.
UnderflowException if empty.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/ds-priorityqueue.pop.php