file_put_contents, file_append and line breaks

后端 未结 7 1266
旧时难觅i
旧时难觅i 2020-12-30 19:32

I\'m writing a PHP script that adds numbers into a text file. I want to have one number on every line, like this:

1
5
8
12

If I use f

相关标签:
7条回答
  • 2020-12-30 20:05

    Ohh Guys! Just Use

    \r\n

    insted of \n

    0 讨论(0)
提交回复
热议问题