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

php中用dom写xml怎么换行

WBOY
WBOYOriginal
2016-06-13 13:51:21789browse

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

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

Statement:
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