ez.no / exponential / documentation / reference / template operators / arrays / array_sum
array|array_sum()
| Name | Type | Description | Required |
|---|
An integer value with the sum of all the elements
Gets the element values of the input array and adds them together, the resulting sum is then returned.
Note: It will fetch values from subarrays.
Summation of a static array.
Sum: {array( 1, 2, 3 )|array_sum}
Summation of a dynamic array,
{$values|array_sum}
log in or create a user account to comment.
Comments