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

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

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() 这篇关于从MySQL数据库回显空格和换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-06 17:34