|
Ds\Stack::peekReturns the value at the top of the stack. Beschreibung
public mixed Ds\Stack::peek
( void
)
Returns the value at the top of the stack, but does not remove it. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteThe value at the top of the stack. Fehler/ExceptionsUnderflowException if empty. BeispieleBeispiel #1 Ds\Stack::peek example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: string(1) "c" |