Skip to content

Instantly share code, notes, and snippets.

@abramadams
Created January 4, 2014 08:16
Show Gist options
  • Select an option

  • Save abramadams/8252988 to your computer and use it in GitHub Desktop.

Select an option

Save abramadams/8252988 to your computer and use it in GitHub Desktop.
<cfscript>
arrayTest = [['a','b','c'],['d','e','f']];
writeDump(arrayTest);
// same as
arrayTest2 = arrayNew(2);
arrayTest2[1][1] = 'a';
arrayTest2[1][2] = 'b';
arrayTest2[1][3] = 'c';
arrayTest2[2][1] = 'd';
arrayTest2[2][2] = 'e';
arrayTest2[2][3] = 'f';
writeDump(arrayTest2);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment