I don't recall how to do it. In JavaScript, I'm not sure that one can have arrays with indices other than incrementing numbers; I would say no, but that is just a guess.
Last edited by Dr. Script; January 24th, 2006 at 05:43 PM.
*9-11-01* Never Forget; Never Forgive; Never Relent!
"If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan
PHP can have different keys or indices for each element. Terefore, you could something like: $arr['car'];, if you defined in your array "car" => "Honda" .
For a JS solution, see below.
Last edited by Dr. Script; January 24th, 2006 at 05:42 PM.
*9-11-01* Never Forget; Never Forgive; Never Relent!
"If we ever forget that we're one nation under God, then we will be a nation gone under." - Ronald Reagan
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.