ez.no / exponential / documentation / reference / template operators / arrays / prepend
$input_array|prepend( element1 [, element2 [, ... ] ] )
| Name | Type | Description | Required |
|---|---|---|---|
| element1 | mixed | Element to add to start of array | yes |
| element2 | mixed | Element to add to start of array | no |
| ... |
Array with specified elements in front of input array.
Adds the parameter value(s) at the start of the input array.
{array( 4, 5 )|prepend( 1, 2, 3 )}
returns tha array(1,2,3,4,5).
Log in or create a user account to comment.
Comments