(PECL ds >= 1.0.2)
Ds\Map::putAll — Associates all key-value pairs of a traversable object or array
public Ds\Map::putAll ( mixed $pairs ) : void
Associates all key-value pairs
of a traversable object or array.
Note:
Keys of type object are supported. If an object implements Ds\Hashable, equality will be determined by the object's
equals
function. If an object does not implement Ds\Hashable, objects must be references to the same instance to be considered equal.
pairs
traversable object or array.
No value is returned.
Example #1 Ds\Map::putAll() example
The above example will output something similar to:
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/ds-map.putall.php