Whatever message this page gives is out now! Go check it out!

Array functions-Developing guide

Last update:
May 18, 2026
The following functions are available for creating, editing, and handling arrays:
FunctionDescription
ArrayAppendAppends an array element to the end of a specified array.
ArrayAvgReturns the average of the values in the specified array.
ArrayClearDeletes all data in a specified array.
ArrayDeleteAtDeletes an element from a specified array at the specified index and resizes the array.
ArrayInsertAtInserts an element (with data) in a specified array at the specified index and resizes the array.
ArrayIsDefinedReturns True if the specified array is defined.
ArrayIsEmptyReturns True if the specified array is empty of data.
arrayLenReturns the length of the specified array.
ArrayMaxReturns the largest numeric value in the specified array.
ArrayMinReturns the smallest numeric value in the specified array.
ArrayNewCreates an array of specified dimension.
ArrayPrependAdds an array element to the beginning of the specified array.
ArrayResizeResets an array to a specified minimum number of elements.
ArraySetSets the elements in a 1D array in a specified range to a specified value.
ArraySortReturns the specified array with elements sorted numerically or alphanumerically.
ArraySumReturns the sum of values in the specified array.
ArraySwapSwaps array values in the specified indexes.
ArrayToListConverts the specified 1D array to a list, delimited with the character you specify.
IsArrayReturns True if the value is an array.
ListToArrayConverts the specified list, delimited with the character you specify, to an array.
For more information about each of these functions, see the CFML Reference.
If a function returns an array, you can now reference a specific element array directly in the function call statement. For example, the following line references the fifth element of the array returned by the myFunc() function:
myFunc()[5]

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page