时间:2021-07-01 10:21:17 帮助过:2人阅读
$xml = ''."\r\n"; $xml .= ''."\r\n"; $xml .= "\t".' '."\r\n"; $sxe = new SimpleXMLElement($xml); $sxe->asXML(APPPATH.'user.xml');'.www.163.com.' '."\r\n"; foreach (array(1,2,3) as $value){ $xml .= "\t".''.$value.' '."\r\n"; } $xml .= '
$sxe = new SimpleXMLElement($xml); $sxe->addChild('username', '李四'); $sxe->asXML(APPPATH.'user.xml');