(PECL ds >= 1.0.0)
Ds\Stack::peek — Returns the value at the top of the stack
public Ds\Stack::peek ( ) : mixed
Returns the value at the top of the stack, but does not remove it.
This function has no parameters.
The value at the top of the stack.
UnderflowException if empty.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/ds-stack.peek.php