This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CMap2 { | |
/** | |
* Merges two or more arrays into one recursively. | |
* If each array has an element with the same string key value, the latter | |
* will overwrite the former (different from array_merge_recursive). | |
* Recursive merging will be conducted if both arrays have an element of array | |
* type and are having the same key. | |
* For integer-keyed elements, the elements from the latter array will | |
* be appended to the former array. |