Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can an array have a name for an index?

Status
Not open for further replies.

robi2

Programmer
Jan 19, 2003
62
IL
I mean i don't want to access my array like this:
myarray[0]

but with a name

myarray["Any name here"]

So how can i do that?
 
exactly as you wrote:
myarray["Any name here"]

this is called an associative array



=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top