New line (“\n”) in PHP is not working

前端 未结 7 1198
青春惊慌失措
青春惊慌失措 2020-12-08 22:41

For some strange reason, inserting echo \"\\n\"; and other scape sequence characters are not working for me, that\'s why I am just using

7条回答
  •  既然无缘
    2020-12-08 23:13

    If you are working with HTML (viewing the result in browser for example) you have to use the HTML way of linebreaks which is:

提交回复
热议问题