How to add to and display values of array?
Ask by Amit Singh
Updated 22 Sep 2020
<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.