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

后端 未结 4 1869
终归单人心
终归单人心 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:18

    if you want to use HTML tag inside php, try this:

    echo "dkljaks aalksja klajklsa
    "; echo "abc jjka kajkajs
    ";

    and see here for br tag and if you don't want to use HTML tag. try this: nl2br() php function for line break.

提交回复
热议问题