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