KapostService::mergeResultArray
Merges two arrays, overwriting the keys in the left array with the right array recurrsivly. Meaning that if a value in the right array is it self an array and the key exists in the left array it recurses into it.
Signature
private function mergeResultArray(array
$leftArray,
array
$rightArray )
Parameters
$leftArray
— array- Left array to merge into
$rightArray
— array- Right array to merge from
Returns
- array
- Resulting array