Last Updated: February 25, 2016
·
23.9K
· emarchak

Use the php constant PHP_EOL to print the correct end of line symbol no matter what system you're on.

http://php.net/manual/en/reserved.constants.php

 <?php 
    print "Hello World," . PHP_EOL . "I've missed you."; 
 ?>

Hello World,
I've missed you. 

It's that easy, seriously.