ez.no / exponential / documentation / reference / template operators / arrays / array_sum
$input_array|array_sum()
Sum of elements in array.
Calculates the sum of values in an array.
{array( 1, 2, 3, 4, 5, 6, 7 )|array_sum}
returns an integer with its value set to 28.
log in or create a user account to comment.
Comments