Last active
December 18, 2015 11:58
-
-
Save tparton42/5779105 to your computer and use it in GitHub Desktop.
ColdFusion Example: Mixed case structure variable names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Create initial recordset ---> | |
<cfset variables.structElementTest = structNew() /> | |
<!--- Artist 1 ---> | |
<cfset structElementTest.band1 = "MUSE" /> | |
<cfset structElementTest["band1_website"] = "www.muse.mu" /> | |
<!--- Artist 2 ---> | |
<cfset structElementTest["band2"] = "Radiohead" /> | |
<!--- Mixed case ---> | |
<cfset structElementTest["BaNd2_website"] = "www.radoihead.com" /> | |
<!--- Dump the results ---> | |
<cfdump var="#variables.structElementTest#" label="Structure Element Test" expand="true"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment