(PECL ds >= 1.0.0)
Ds\PriorityQueue::peek — Returns the value at the front of the queue
public Ds\PriorityQueue::peek ( ) : mixed
Returns the value at the front of the queue, but does not remove it.
This function has no parameters.
The value 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.peek.php