search

Home  >  Q&A  >  body text

If I want to use echo to output<br/>, how should I write it? Now it’s not a line break when writing, I just want it to be displayed

echo “</br>”

李龙李龙2400 days ago2446

reply all(6)I'll reply

  • NULL

    NULL2018-05-02 10:46:15

    Output to the web page echo "<br />";

    Output to the console echo "\r\n";

    reply
    0
  • PHP中文网

    PHP中文网2018-05-02 10:31:15


    echo '我是上一行';
    echo '<br />'; 
    echo '我是下一行';

    1.png

    No line breaks? ? ? ?

    reply
    0
  • 一笑而过

    一笑而过2018-05-01 14:32:33

    echo '<pre>' -----Original format output,                                                                                                                                                                                                                                                 . ##

    reply
    2
  • 麻狼

    麻狼2018-05-01 07:46:24

    echo '<br />';

    That's it. Is there any problem?

    But please note that you may want to increase the line spacing. Under normal circumstances, you do not use this method. You need to know your logic.

    reply
    0
  • 李龙

    No, test it yourself

    李龙 · 2018-05-01 09:37:34
  • 东子

    东子2018-04-30 17:46:31

    Like this

    echo '</br>';


    reply
    0
  • 李龙

    No, I tested it

    李龙 · 2018-05-01 09:37:02
  • 意志被模仿,从未被摧毁

    意志被模仿,从未被摧毁2018-04-30 11:17:20

    Hello, do you think this tool is useful?

    reply
    1
  • Cancelreply