So Evolve and I were looking at code samples taken from the php online
manual. Here is one example
echo 'You can also have embedded newlines in
strings this way as it is
okay to do';
(from page:
http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.single)
We were surprised when looking at involve's code exercise (http://
codepad.org/udcdHD39) that the Le Guin poem wouldn't render in the
browser with the embedded newlines. It just runs all together unless
breaks or returns are manually added. This holds true for single,
double, heredoc syntax and nowdoc syntax. So where are the embedded
newlines?
I looked at the source code and the source code had preserved the
newlines. But since there was no HTML or other instruction to tell
the browser to preserve the formatting, the newlines are only
preserved in the source code the PHP is creating.
Matt: is this understanding correct?