摘要:
最近写一个重写xml文件的程序,没有什么要求,就是编码上边有些困惑,不废话,上代码.$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8" ?><thumbnails></thumbnails>');foreach ( $result as $k => $v ) { $thumb = $xml->addChild('thumbnail'); $thumb->addAttribute('t 阅读全文