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