Web Analytics Made Easy -
StatCounter new line character - CodingForum

Announcement

Collapse
No announcement yet.

new line character

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • new line character

    is there any way to insert new line character in echo e,g


    Code:
    echo $var\n;

  • #2
    PHP Code:
    echo "$var\n";

    echo 
    $var "\n";

    echo 
    $var"\n"
    ZCE

    Comment


    • #3
      PHP Code:
      echo "{$var}\n"
      Newlines are interpreted in "double quotes". They won't show up in HTML, however; you'll need to use the <BR/> tag.

      Comment

      Working...
      X