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

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


    is the HTML Tag for new line, whereas "\n" is to output a new line (for real).

    The browser doesn't output a new line each time the HTML file goes to the next line.

提交回复
热议问题