1 | <?php namespace Arcanedev\Composer\Utilities; |
||
9 | class NestedArray |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * Merges multiple arrays, recursively, and returns the merged array. |
||
14 | * |
||
15 | * This function is similar to PHP's array_merge_recursive() function, but it handles non-array values differently. |
||
16 | * When merging values that are not both arrays, the latter value replaces the former rather than merging with it. |
||
17 | * |
||
18 | * |
||
19 | * @return array |
||
20 | * |
||
21 | * @see NestedArray::mergeDeepArray() |
||
22 | */ |
||
23 | 15 | public static function mergeDeep() |
|
27 | |||
28 | /** |
||
29 | * Merges multiple arrays, recursively, and returns the merged array. |
||
30 | * |
||
31 | * This function is equivalent to NestedArray::mergeDeep(), except the input arrays are passed as a single array |
||
32 | * parameter rather than a variable parameter list. |
||
33 | * |
||
34 | * @param array $arrays |
||
35 | * @param bool $preserveIntegerKeys |
||
36 | * |
||
37 | * @return array |
||
38 | * |
||
39 | * @see NestedArray::mergeDeep() |
||
40 | */ |
||
41 | 30 | public static function mergeDeepArray(array $arrays, $preserveIntegerKeys = false) |
|
65 | } |
||
66 |