ez.no / exponential / documentation / reference / template operators / arrays / append
$input_array|append( value1 [, value2 [, ... ] ] )
| Name | Type | Description | Required |
|---|---|---|---|
| value1 | mixed | Stuff to be appended to input. | yes |
| value2 | mixed | Stuff to be appended to input. | no |
| ... |
Array with parameters appended to input array.
Puts the parameter value(s) to the end of the input array/string.
As of Exponential 3.2-5 and Exponential 3.3-4, you may also append multiple strings to a string. In earlier versions, you may only apply one string at a time
example>
{array( 1, 2, 3 )|append( 4, 5, 6 )}
returns the array(1, 2, 3, 4, 5, 6 ).
example
{array( 1, 2, 3 )|append( array( 4, 5, 6 )}
returns the array( 1, 2, 3, array( 4, 5, 6 ) ).
example
As of Exponential 3.2-5 and Exponential 3.3-4, you may also append multiple strings to a string. In older version, only the first parameter ("1 ") will be appended:
{"Testing "|append( "1 ", "2 ", "3" )}
log in or create a user account to comment.
Comments