Php echo not printing newline even within double quotes or using PHP_EOL

后端 未结 4 1862
终归单人心
终归单人心 2021-01-24 05:21

Here is a photo clip, I think it\'s pretty clear.
This is driving me crazy. I can\'t seem to get php to print a newline either on my localhost(using xampp) or on an online P

4条回答
  •  迷失自我
    2021-01-24 06:12

    Try \r\n instead of \n. Or you can also try
    too.

    \n will display a new line if you check the HTML source code in your browser.

    Also http://www.go4expert.com/forums/showthread.php?t=8021 might help you understand a bit more.

提交回复
热议问题