We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9711ec commit b11959bCopy full SHA for b11959b
README.md
@@ -118,6 +118,14 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
118
```
119
120
- **merge**:
121
+ > Merges one or more arrays into master recursively.
122
+ If each array has an element with the same string key value, the latter
123
+ will overwrite the former (different from array_merge_recursive).
124
+ Recursive merging will be conducted if both arrays have an element of array
125
+ type and are having the same key.
126
+ For integer-keyed elements, the elements from the latter array will
127
+ be appended to the former array.
128
+
129
- ```php
130
// Example 1.
131
$dot->merge(['key_1' => ['some_key' => 'some_value']]);
0 commit comments