AdobeStock_455007340

Checking Array Size

IsArray() is usually used to test if a variable is an array, but that is not all it can do. IsArray() can take a number as its second optional parameter – the number of elements to check for. Using this parameter, IsArray() will check that the variable is an array that contains the specified number of elements. (Applies to: ColdFusion 4 or later)

Leave a Reply