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

前端 未结 7 1199
青春惊慌失措
青春惊慌失措 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:18

    /n only works if it is used as a simple text but here as we code in a html doc it takes it as a HTML text hence you can use
    tag instead.

提交回复
热议问题