Why doesn't this work?
$helpsection = "login";
$imagelist[$helpsection] = array("file"=>"tn_intial.jpg","alttext"=>"Phonebook");
$imagelist[$helpsection] = array("file"=>"tn_textinput.jpg","alttext"=>"Enter Name");
new top array item
$helpsection = "stock";
$imagelist[$helpsection][] = array("file"=>"figure1.gif","alttext"=>"Stock Level","space"=>4);
$imagelist[$helpsection][] = array("file"=>"figure2.gif","alttext"=>"Enter Part Number");
I was so proud that I had manage to keep track of my keys and values and indices, but now I think I am either lost or this is a limitation in PHP syntax!
I think the problem lies with
$imagelist["somename"][] = "What ever";
$imagelist["somename"][] = "Ever what";
Id does make sense though. What I am doing is that I am inserting a 2nd dimension array using automatic indices.
Ideas?