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