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

php原生态输出的有关问题

WBOY
Release: 2016-06-13 12:00:32
Original
854 people have browsed it

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

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

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

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