switch the \n into PHP_EOL