unpack
Definition
Description
Converts multidimensional array to map of keys concatenated by dot and corresponding values.
Inverse of pack
.
Modes
Mode
Description
Arr::UNPACK_ALL
Every array will be unpacked
Arr::UNPACK_PRESERVE_LIST_ARRAY
Preserve arrays with highest nesting level (if they are not associative) as element values instead of unpacking them
Arr::UNPACK_PRESERVE_ASSOC_ARRAY
Preserve arrays with highest nesting level (if they are associative) as element values instead of unpacking them
Arr::UNPACK_PRESERVE_ARRAY
Preserve all arrays with highest nesting level as element values instead of unpacking them
Examples
Last updated