PHP » GoLang |
login |
register |
about
|
|
Ds\Map::merge(PECL ds >= 1.0.0) Ds\Map::merge — Returns the result of adding all given associations DescriptionReturns the result of associating all keys of a given traversable object or array with their corresponding values, combined with the current instance.
Parameters
Return ValuesThe result of associating all keys of a given traversable object or array with their corresponding values, combined with the current instance.
ExamplesExample #1 Ds\Map::merge() example
<?phpThe above example will output something similar to:
Ds\Map Object
(
[0] => Ds\Pair Object
(
[key] => a
[value] => 10
)
[1] => Ds\Pair Object
(
[key] => b
[value] => 2
)
[2] => Ds\Pair Object
(
[key] => c
[value] => 3
)
[3] => Ds\Pair Object
(
[key] => e
[value] => 50
)
)
|
more
Most requested
more
Last requests
|