ColdFusion 9.0 Resources |
IsArraySee alsoArray functions; Modifying a ColdFusion XML object in the Developing ColdFusion Applications HistoryColdFusion MX:
Parameters
UsageUse this function to determine whether a value is an array or query column. This function evaluates a Java array object, such as a vector object, as having one dimension. Example<h3>IsArray Example</h3> <!--- Make an array ---> <cfset MyNewArray = ArrayNew(1)> <!--- set some elements ---> <cfset MyNewArray[1] = "element one"> <cfset MyNewArray[2] = "element two"> <cfset MyNewArray[3] = "element three"> <!--- is it an array? ---> <cfoutput> <p>Is this an array? #IsArray(MyNewArray)# <p>It has #ArrayLen(MyNewArray)# elements. <p>Contents: #ArrayToList(MyNewArray)# </cfoutput> |