For Example <cfset fuitname[1][1] = “apple”> <cfset fuitname[1][2] = “banana”> <cfset fuitname[2][1] = “mango”> <cfset fuitname[2][2] = “grapes”> Display the value: <cfoutput> The first element of fruitname is #fruitname[1][1]# and second is #fruitname[1][2]# </cfoutput>
output: The first element of fruitname is apple and second is banana.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
<cfset fuitname[1][1] = “apple”>
<cfset fuitname[1][2] = “banana”>
<cfset fuitname[2][1] = “mango”>
<cfset fuitname[2][2] = “grapes”>
Display the value:
<cfoutput>
The first element of fruitname is #fruitname[1][1]# and second is #fruitname[1][2]#
</cfoutput>
output:
The first element of fruitname is apple and second is banana.