ArrayUtil
A class of utilities for dealing with arrays.
Description Description
Source Source
File: src/Utilities/ArrayUtil.php
Methods Methods
- get_nested_value — Get a value from an nested array by specifying the entire key hierarchy with '::' as separator.
- get_value_or_default — Gets the value for a given key from an array, or a default value if the key doesn't exist in the array.
- is_truthy — Checks if a given key exists in an array and its value can be evaluated as 'true'.