note 97076 rejected from function.echo by thiago
| From: | thiago@php.net | Date: | Wed, 31 Mar 2010 14:02:33 +0000 |
| Subject: | note 97076 rejected from function.echo by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167553@lists.php.net to get a copy of this message | ||
Note Submitter: Mark
----
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')
?>
==============