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
this is my text\r\nnext line
Any ideas about how to get the output on different lines?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use double quotes
".Additional you can use the system-dependent constant
PHP_EOL