...

View Full Version : 3D Array?



john6
10-19-2012, 10:49 AM
Why does this not work?


myArray['numbers'] = array(1 => "One", 2 => "Two");
myArray['letters'] = array("A" => "Aye", "B" => "Bee");



???????

Any way to achieve something like that?

Fou-Lu
10-19-2012, 04:04 PM
Sure, make myArray a variable. Right now its a constant. It'll work fine after that.
It is only a 2 dimensional array though, not a three.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum