Inside Coldfusion MX

"-->

ArrayMin (array)

Description

Gives the smallest numeric value in an array. Returns 0 if the array is empty.

Example

<cfset zipcode = ArrayNew(1)> <cfset zipcode[1] = 80202> <cfset zipcode[2] = 80203> <cfset zipcode[3] = 80204> To find the smallest numeric value of an array: <cfoutput>#ArrayMin(zipcode)#<cfoutput>

Категории