Cross platform newline in PHP
Answer:
In PHP, if you want to print out a newline character, you can use the "\n" character
<?php
echo "Hello World\n";
But the \n" character only work in Linux/UNIX, to make it work for both Windows, Mac and Linux/UNIX platforms, you can use a special constant PHP_EOL.
<?php
echo "Hello World" . PHP_EOL;