@NogDogFeb 09.2009 — #You can either add them all in one go with: [code=php] $link_arr[$sec_slot] = array('key1' => 'value1', 'key2' => 'value2); [/code] Or you can add them one at a time with: [code=php] $link_arr[$sec_slot] = array(); $link_arr[$sec_slot]['key1'] = 'value1'; $link_arr[$sec_slot]['key2'] = 'value2'; [/code]
However, $link_arr has to be created dynamically! When I stick on a new element (which is in itself an array), I want to know how to assign a key to that new element.