且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从MySQL数据库回显空格和换行符?

更新时间:2023-02-03 23:07:49

nl2br() >

I noticed that when I submit text to my MySQL form in VARCHAR it does store line breaks. (Since they show in PHPMyAdmin). However when I echo column Text, I get everything in a single line.

How can I echo values retaining line breaks?

nl2br()