Skip to content

Instantly share code, notes, and snippets.

@youcoldfusion
Created April 3, 2013 13:21
Show Gist options
  • Save youcoldfusion/5301156 to your computer and use it in GitHub Desktop.
Save youcoldfusion/5301156 to your computer and use it in GitHub Desktop.
Looping over structure in coldfusion
<cfset newStructure={}>
<cfset newStructure.id=1>
<cfset newStructure.name="ColdFusion">
<cfloop collection="#newStructure#" item="key">
<cfoutput>#key#</cfoutput>
<cfoutput>#newStructure[key]#</cfoutput><br/>
</cfloop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment