Skip to content

Commit b11959b

Browse files
committed
[+]: Update README.md
1 parent c9711ec commit b11959b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ DotArray::create(['config' => ['some.dotted.key' => 'value']])->get('config.{som
118118
```
119119
120120
- **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+
121129
- ```php
122130
// Example 1.
123131
$dot->merge(['key_1' => ['some_key' => 'some_value']]);

0 commit comments

Comments
 (0)