$items
$items : array
The stored items
Dot
This class provides a dot notation access and helper functions for working with arrays of data. Inspired by Laravel Collection.
$items : array
The stored items
mergeRecursiveDistinct(array|string|self $key, array|self $value = []) : mixed
Recursively merge a given array or a Dot object with the given key or with the whole Dot object.
Instead of converting duplicate keys to arrays, the value from given array will replace the value in Dot object.
array|string|self | $key | |
array|self | $value |
arrayMergeRecursiveDistinct(array $array1, array $array2) : array
Merges two arrays recursively. In contrast to array_merge_recursive, duplicate keys are not converted to arrays but rather overwrite the value in the first array with the duplicate value in the second array.
array | $array1 | Initial array to merge |
array | $array2 | Array to recursively merge |