PHP heredoc not retaining format
10:55 23 Feb 2012

Using the following code I expect to see 5 separate lines displayed. Instead it wraps everything together on one line... no tabs, no leading spaces, no blank line. Not what I was expecting.

After viewing other code, the programmer inserted a series of 's which I tried (using
instead) and got some of the results I was looking for. Am I expecting too much? I never could get leading spaces and tabs to work. Could this be a setup problem?


Result: This is a Headline This is the first line. This is the second. - Written by Alfred E Newman.

php format heredoc