echo
| From: | Christopher Weaver | Date: | Tue, 30 Nov 2004 02:20:09 +0000 |
| Subject: | echo | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-203177@lists.php.net to get a copy of this message | ||
I can't get this code, pasted from the documentation, to work properly. The
new lines don't occur where they should.
<?php
echo "Hello World";
echo "This spans
multiple lines. The newlines will be
output as well";
echo "This spans\nmultiple lines. The newlines will be\noutput as well.";
echo <<<END
This uses the "here document" syntax to output
multiple lines with $variable interpolation. Note
that the here document terminator must appear on a
line with just a semicolon. no extra whitespace!
END;
?>
Any help will be greatly appreciated.