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

ArrayLen

Last update:
May 18, 2026

Description

Determines the number of elements in an array.

Returns

The number of elements in an array.

Category

Function syntax

ArrayLen(array)

See also

ArrayIsEmpty ; Functions for XML object management in  Modifying a ColdFusion XML object  in the Developing ColdFusion Applications

History

ColdFusion MX: Changed behavior: This function can be used on child XML objects.

Parameters

ParameterDescription
array
Name of an array

Example

<cfscript>
 myArray=[1,2,3,4,5]
 writeoutput(ArrayLen(myArray)) // Returns 5
</cfscript>

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