What is the method to output a line break in PHP echo?

In PHP, you can use “\n” or “” to output a line break.

  1. use the character “\n”
  2. “First line\nSecond line\nThird line”
  3. Output result:
  4. First line
    Second line
    Third line
  5. Use quotation marks.
  6. echo “First line
    Second line
    Third line”;
  7. Output:
    Line one
    Line two
    Line three
bannerAds