Home  >  Article  >  Backend Development  >  php原生态输出的有关问题

php原生态输出的有关问题

WBOY
WBOYOriginal
2016-06-13 12:00:32818browse

php原生态输出的问题求助
如果直接从数据库复制出来粘贴到记事本里,是有换行的。

但是正常SQL语句查询输出到网页后,就没有换行符了。

求助。。。
------解决方案--------------------
nl2br(); 用这个把文本换行转为html换行即可。

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