Just a note: the sequence for a new line is generally "\n" on Unix type systems, "\r" on Macs, and "\r\n" on MS Windows.
Of course, the actual character sequence when used in a string may not apply for all programming languages, though you should be quite safe in the case of PHP.