array_sum

Summary

Calculates the sum of values in an array.

Usage

$input_array|array_sum(  )

Returns

Sum of elements in array.

Description

Calculates the sum of values in an array.

Examples

{array( 1, 2, 3, 4, 5, 6, 7 )|array_sum}

returns an integer with its value set to 28.

Comments

log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
       array_sum
       append
       array
       array_append
       array_merge
       array_prepend
       begins_with
       compare
       contains
       ends_with
       explode
       extract
       extract_left
       extract_right
       hash
       implode
       insert
       merge
       prepend
       remove
       repeat
       reverse
       array_sum
       unique
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
2:48:24 pm
by Kåre Køhler Høvik

Last updated

20/02/2004
10:46:24 am
by Kåre Køhler Høvik

Authors

Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.