how to insert new line in php code example
Example 1: append new line php
$data = 'some data'.PHP_EOL;
$fp = fopen('somefile', 'a');
fwrite($fp, $data);
Example 2: php new line
return nl2br("This is the cointracker sample text.\nThis should be line 2!");