我们刚刚升级了服务器,现在拥有MySQL 8.0.15,之前拥有MySQL 5.5.58 我们有一个创建数组的过程,但是在新服务器上似乎没有发生。我只是想知道在新版本的MySQL中该过程是否不同? 谢谢 保罗。
$save_path = "C:\\export\\";
if($values['AutoExport']){
$data =
array(
"JobNo"=>$values['JobNo'],
"ContactEmail"=>$values['ContactEmail'];
$domtree = new DOMDocument('1.0', 'UTF-8');
$domtree->xmlStandalone = true;
$xmlRoot = $domtree->createElement("table");
$xmlRoot = $domtree->appendChild($xmlRoot);
$xmlRow = $xmlRoot->appendChild($domtree->createElement("row"));
foreach ( $data as $data_key => $child_data )
$xmlRow->appendChild($domtree->createElement(htmlspecialchars($data_key),htmlspecialchars($child_data)));
$domtree->formatOutput = true;
$domtree->save($save_path."Job_".$values["JobNo"].".xml");
}