Zend\Stdlib\ArrayUtils::merge
Merge two arrays together.
If an integer key exists in both arrays and preserveNumericKeys is false, the value from the second array will be appended to the first array. If both values are arrays, they are merged together, else the value of the second array overwrites the one of the first array.
Signature
public function merge(array
$a,
[array
$b = false,
[bool
$preserveNumericKeys = false]] )
Parameters
$a
— array$b
— array$preserveNumericKeys
— object
Returns
- array