|
Ds\Stack::copyReturns a shallow copy of the stack. Beschreibung
public Ds\Stack Ds\Stack::copy
( void
)
Returns a shallow copy of the stack. Parameter-ListeDiese Funktion hat keine Parameter. RückgabewerteReturns a shallow copy of the stack. BeispieleBeispiel #1 Ds\Stack::copy example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
Ds\Stack Object
(
[0] => 3
[1] => 2
[2] => 1
)
Ds\Stack Object
(
[0] => 4
[1] => 3
[2] => 2
[3] => 1
)
|