|
Ds\Stack::popRemoves and returns the value at the top of the stack. Beschreibung
public mixed Ds\Stack::pop
( void
)
Removes and returns the value at the top of the stack. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteThe removed value which was at the top of the stack. Fehler/ExceptionsUnderflowException if empty. BeispieleBeispiel #1 Ds\Stack::pop example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: string(1) "c" string(1) "b" string(1) "a" |