Ds\Queue::peekReturns the value at the front of the queue. Description
public mixed Ds\Queue::peek
( void
)
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\Queue::peek example
<?php The above example will output something similar to: string(1) "a" |