Description

Array maximum function.

Returns

The largest numeric value in an array. If the array parameter value is an empty array, returns zero.

Category

Array functions

Function syntax

ArrayMax(array)

Parameters

Parameter

Description

array

Name of an array

Example

<cfscript>
       myArray=[23,76,1,-43,9,112]
       maxVal=ArrayMax(myArray)
       WriteOutput(maxVal)// Returns 112
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy