Array Functions

namedescription
arrayAppendAppends an array element to an array.
arrayAvgCalculates the average of the values in an array.
arrayClearDeletes the data in an array.
arrayContainsSearches an array for the presence of a specified object. The function searches simple objects such as strings and numbers or complex objects such as structures. String searches are case-sensitive. This function does not support searche for COM and CORBA objects.
arrayDeleteDeletes an element from an array. It does not support COM and CORBA objects.
arrayDeleteAtDeletes an element from a specified position in an array.
arrayFindThis function performs a case-sensitive search on an array for a specified object. The function can search for simple objects such as strings or numbers and complex objects such as structures. It does not support COM and CORBA objects.
arrayFindNoCaseThis function performs a case-insensitive search on an array for a specified object. The function can search for simple objects such as strings or numbers and complex objects such as structures. It does not support COM and CORBA objects.
arrayInsertAtInserts a value into an array. Array elements whose indexes are equal to or greater than the new position are incremented by one. The array length increases by one.
arrayIsDefinedDetermines whether an array element is defined.
arrayIsEmptyDetermines whether an array is empty of data elements.
arrayLenDetermines the number of elements in an array.
arrayMaxArray maximum function.
arrayMinArray minimum function.
arrayNewCreates an array of 1–3 dimensions. Index array elements with square brackets: [ ].
arrayPrependInserts an array element at the beginning of an array.
arrayResizeResets an array to a specified minimum number of elements. Resetting can improve performance, if used to size an array to its expected maximum. For more than 500 elements, use ArrayResize immediately after using the ArrayNew tag.
arraySetIn a one-dimensional array, sets the elements in a specified index range to a value. Useful for initializing an array after a call to ArrayNew.
arraySortSorts array elements numerically or alphanumerically.
arraySumArray sum function.
arraySwapSwaps array values of an array at specified positions. This function is more efficient than multiple cfset tags.
arrayToListConverts a one-dimensional array to a list.
isArrayDetermines whether a value is an array.
listToArrayCopies the elements of a list to an array.