Provides helpers to perform operations on nested arrays and array keys of variable depth.
Name | Modifiers | Type | Description |
---|---|---|---|
NestedArray::filter | public static | function | Filters a nested array recursively. |
NestedArray::getValue | public static | function | Retrieves a value from a nested array with variable depth. |
NestedArray::keyExists | public static | function | Determines whether a nested array contains the requested keys. |
NestedArray::mergeDeep | public static | function | Merges multiple arrays, recursively, and returns the merged array. |
NestedArray::mergeDeepArray | public static | function | Merges multiple arrays, recursively, and returns the merged array. |
NestedArray::setValue | public static | function | Sets a value in a nested array with variable depth. |
NestedArray::unsetValue | public static | function | Unsets a value in a nested array with variable depth. |
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Utility!NestedArray.php/class/NestedArray/8.1.x