cfloop results into an array code example
Example 1: coldfusion loop structure
<cfscript>
for ( key in myStruct ) {
writeOutput( '#key#: #myStruct[key]#<br>' );
}
</cfscript>
Example 2: coldfusion loop array
<cfscript>
for ( item in myArray ) {
writeOutput( #item# & '<br>' );
}
</cfscript>