newlines not output, using example

2 views
Skip to first unread message

introvert

unread,
Jan 30, 2011, 8:07:35 PM1/30/11
to Introduction to PHP, Jan-Apr 2011, Matt's Section
This excerpt of the example, at http://nz.php.net/manual/en/function.echo.php

<?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.";
?>

displays this, all on one line.

Hello WorldThis spans multiple lines. The newlines will be output as
wellThis spans multiple lines. The newlines will be output as well

Where at the new lines?

introvert

unread,
Jan 30, 2011, 11:16:04 PM1/30/11
to Introduction to PHP, Jan-Apr 2011, Matt's Section
This has been moved to nabble, please answer there

http://introduction-to-php.988178.n3.nabble.com/Matt-s-Section-f2356910.html
Reply all
Reply to author
Forward
0 new messages