note 97076 added to function.echo
| From: | Mark at osu1 dot php dot net | Date: | Wed, 31 Mar 2010 13:42:46 +0000 |
| Subject: | note 97076 added to function.echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167552@lists.php.net to get a copy of this message | ||
Does this note from sandaimespaceman mean that the documentation is wrong? I'm finding he is
correct, there is no other way I can get a newline:
==============
Outputting \n won't generate a line break in the browser, <br /> is required for line
break. Also,
<?php
echo "first line";
echo "second line";
?>
will like
first linesecond line
because you didn't insert spaces/line breaks.
the echo function can also be written like
<?php
echo ('text here')
?>
==============
----
Server IP: 69.147.83.197
Probable Submitter: 71.229.208.161
----
Manual Page -- http://www.php.net/manual/en/function.echo.php
Edit -- https://master.php.net/note/edit/97076
Del: integrated -- https://master.php.net/note/delete/97076/integrated
Del: useless -- https://master.php.net/note/delete/97076/useless
Del: bad code -- https://master.php.net/note/delete/97076/bad+code
Del: spam -- https://master.php.net/note/delete/97076/spam
Del: non-english -- https://master.php.net/note/delete/97076/non-english
Del: in docs -- https://master.php.net/note/delete/97076/in+docs
Del: other reasons-- https://master.php.net/note/delete/97076
Reject -- https://master.php.net/note/reject/97076
Search -- https://master.php.net/manage/user-notes.php