Inside Coldfusion MX

"-->

ArraySum (array)

Description

Returns the sum of the values in an array.

Example

<cfset zipcode = ArrayNew(1)> <cfset zipcode[1] = 80203> <cfset zipcode[2] = 80202> <cfset zipcode[3] = 80204> <cfoutput> The sum of the zipcode array equals #ArraySum(zipcode)#. </cfoutput>

Категории