Merge ViewHelper <f:merge>
The MergeViewHelper merges two arrays into one, optionally recursively.
It works similar to the PHP functions array_merge() and array_merge_recursive(), depending on the value of the "recursive" argument.
Go to the source code of this ViewHelper: MergeViewHelper.php (GitHub).
Arguments of the <f:merge> ViewHelper
array
-
- Type
- array
The array to merge into
recursive
-
- Type
- boolean
- Default
- false
Whether to merge arrays recursively
with
-
- Type
- array
Array to be merged