Comparison of programming languages (associative array): Difference between revisions

Content deleted Content added
m Disambiguate Pointer to Pointer (computing) using popups
Line 70:
phoneBook["Sally Smart"] = "555-9999";
phoneBook["John Doe"] = "555-1212";
phoneBook["J. Random Hacker"] = "555-1337";
sName = "A Person";
phoneBook[sName] = "555-4321";
phoneBook.UnknownComic = "???";
</cfscript>
 
 
<!-- will output 3 question marks below: -->
<cfoutput>
<!-- will output 3 question marks below: -->
 
#phoneBook["UnknownComic"]#
 
<!-- will dump the structure: --->
<cfdump var = "#phonebook#" />
</cfoutput>
 
 
</source>