cfdump - dump an array
cfdumpArray.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfdump tag example: how to dump an array</title>
</head>
<body>
<h2 style="color:Crimson">cfdump Tag Example</h2>
<cfset ColorArray=Arraynew(2)>
<cfset ColorArray[1][1]="AliceBlue">
<cfset ColorArray[1][2]="##F0F8FF">
<cfset ColorArray[2][1]="AntiqueWhite">
<cfset ColorArray[2][2]="##FAEBD7">
<cfset ColorArray[3][1]="Aqua">
<cfset ColorArray[3][2]="##00FFFF">
<cfdump var="#ColorArray#" label="ColorArray">
</body>
</html>
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLs5DDH6uVjqry8-1BG_7qfPTqIMJfJACaVRwTaLQIzmHUNYcIXEwupn2s3kHS344X0b0Jkg8tdq-8V7ELTBwj1dJ-xHNIhWHhCoQ2TF4DIbJ1kCAWMnuyIWrnmDec9wmKfmj3OZk-OPE/s1600/cfdumpArray.gif)
- ArraySort() - sort array elements
- ArraySum() - get sum of values in an array
- ArraySwap() - swap array values of an array at specified positions
- ArrayToList() - convert an Array to a List
- ListToArray() - copy the elements of a List to an Array
- ArrayNew() - three dimensional array
- ArrayNew() - two dimensional array