input|array_sum()
This operator attempts to calculate and return the sum of the input array's elements.
{array( 1, 2, 3, 4, 5, 6, 7 )|array_sum}
The following output will be produced: "28" - which is the sum of 1, 2, 3, 4, 5, 6, 7.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.