$a = array("key1"=>"value1", "key2"=>"value2"); // to append "key3" - "value3": $a["key3"] = "value3"