Home > Backend Development > PHP Tutorial > php中用dom写xml怎么换行

php中用dom写xml怎么换行

WBOY
Release: 2016-06-13 10:01:35
Original
1169 people have browsed it

php中用dom写xml如何换行
如题。因为不加特殊处理,写出来的xml很难看,都练成一行了。怎么做处理可以控制换行啊?

------解决方案--------------------
\n换行

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template