use PHP_EOL instead of \n