PHP newline not working in text file

后端 未结 7 450
无人共我
无人共我 2021-02-02 08:41

I am using the PHP code:

$numberNewline = $number . \'\\n\';
fwrite($file, $numberNewline);

to write $number to a file.

For some reason

7条回答
  •  长情又很酷
    2021-02-02 09:06

    If inserting "\n" does not yield any results, you can also try "\r\n" which adds a "carriage-return" and "new line."

提交回复
热议问题