ez.no / exponential / documentation / reference / template operators / arrays / merge
$input_array|merge( array1 [, array2 [, ... ] ] )
| Name | Type | Description | Required |
|---|---|---|---|
| array1 | array | Array to merge with input array | yes |
| array2 | array | Array to merge with input array | no |
| ... |
New array containing all arrays merged.
This operator will merge the input_array with all arrays passed as parameter into one array.
{array( 1, 2 )|merge( array( 3, 4 ), array( 5, 6, 7 ) )}
returns an array with integers 1 trough 7: (1,2,3,4,5,6,7).
log in or create a user account to comment.
Comments