|
Ds\PriorityQueue::popRemoves and returns the value with the highest priority. Description
public mixed Ds\PriorityQueue::pop
( void
)
Removes and returns the value at the front of the queue, ie. the value with the highest priority.
ParametersThis function has no parameters. Return ValuesThe removed value which was at the front of the queue. Errors/ExceptionsUnderflowException if empty. ExamplesExample #1 Ds\PriorityQueue::pop example
<?php The above example will output something similar to: string(1) "a" string(1) "b" string(1) "c" |