最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
简单入门级php 生成xml文档代码
时间:2022-06-24 20:53:50 编辑:袖梨 来源:一聚教程网
$doc = new domdocument('1.0');
// we want a nice output
$doc->formatoutput = true;
| 代码如下 | 复制代码 |
|
$root = $doc->createelement('book'); $title = $doc->createelement('title');$title = $root->appendchild($title); $text = $doc->createtextnode('this is the title'); echo "retrieving all the document: "; echo "retrieving only the title part: "; |
|
相关文章
- 灵兽大冒险新手开荒攻略 灵兽大冒险零基础快速上手与资源规划指南 04-05
- 逸剑风云决白帝剑器任务攻略 逸剑风云决白帝剑器全流程完成指南 04-05
- yandex引擎首页入口位置在哪 04-05
- 爆米花视频app如何查看我的钱袋 04-05
- 掌上同济如何绑定就诊卡 04-05
- 如何下载红果免费短剧官方版 04-05