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