I have a php CLI script and cannot get the output to break on new lines. I do
echo \'this is my text\\r\\n\'; echo \'next line\';
This gives
Escape sequences are only parsed when inside double quotes, not single quotes.
http://php.net/manual/en/language.types.string.php