ez.no / exponential / documentation / reference / template operators / arrays / repeat
$input_array|repeat( times )
| Name | Type | Description | Required |
|---|---|---|---|
| times | integer | Number of times to repeat array | yes |
Array containing input array elements repeated n times.
This operator returns a repeated version of an array. The items parameter defines the number of times the array should be repeated.
{array( 1, 2, 3, 4 )|repeat( 3 )}
returns the array (1,2,3,4,1,2,3,4,1,2,3,4).
log in or create a user account to comment.
Comments