|
Ds\PriorityQueue::peekReturns the value at the front of the queue Description
public mixed Ds\PriorityQueue::peek()
Returns the value at the front of the queue, but does not remove it. ParametersThis function has no parameters. Return ValuesThe value at the front of the queue. Errors/ExceptionsUnderflowException if empty. ExamplesExample #1 Ds\PriorityQueue::peek example
The above example will output something similar to: string(1) "b" |