最新下载
热门教程
- 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: "; |
|
相关文章
- 原神妮露如何培养 01-04
- 找靓机官网网页版-找靓机官方网页入口 01-04
- 洛克王国世界地刺队有什么搭配 01-04
- 漫蛙网页版免费入口分享-manwa漫画免费进入页面 01-04
- 崩坏星穹铁道符玄怎么培养 01-04
- 淘特官网登录入口-淘特网页版快捷登录 01-04