Skip to content

Instantly share code, notes, and snippets.

@joeydaly
Created June 11, 2014 03:46
Show Gist options
  • Save joeydaly/30eeaa65f2402eb7194e to your computer and use it in GitHub Desktop.
Save joeydaly/30eeaa65f2402eb7194e to your computer and use it in GitHub Desktop.
cfml example
<cfset lstNames = "Bob,Jane,TMart" />
<cfset arrNames = ListToArray(lstNames) />
<cfoutput>
<cfset idx = 1 />
<cfloop array="#arrNames#" index="name">
#idx# - #name#<br />
<cfset idx = idx + 1 />
</cfloop>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment