|
Ds\Stack::toArrayConverts the stack to an array. Beschreibung
public array Ds\Stack::toArray
( void
)
Converts the stack to an array.
Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteAn array containing all the values in the same order as the stack. BeispieleBeispiel #1 Ds\Stack::toArray example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
array(3) {
[0]=>
int(3)
[1]=>
int(2)
[2]=>
int(1)
}
|