Problem Description
In PHP I am trying to create a newline character:
echo $clientid;
echo ' ';
echo $lastname;
echo ' ';
echo '\r\n';
Afterwards I open the created file in Notepad and it writes the newline literally:
> 1 John Doe\r\n 1 John Doe\r\n 1 John Doe\r\n
I have tried many variations of the `\r\n`, but none work. Why isn't the newline turning into a newline?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?