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