I want to write \r\n
in file, not for making new line but literal text. The line I want to write in the file is
To make a new line write \n in the end of the line
My php code is like this
$handle = fopen("a.txt","w+");
$text = "To make a new line write \r\n in the end of the line\r\n";
fwrite($handle, $text);
fclose($handle);
But it is writing
To make a new line write
in the end of the line
That \r\n
is parsed as newline
. How can I write that text in the file?