📅  最后修改于: 2022-03-11 14:54:32.326000             🧑  作者: Mango
代码示例2
'world', 'good' => 'morning');
$xml = simplexml_load_string("");
foreach ($array as $k=>$v) {
$xml->addChild($k, $v);
}
?>