fputcsv and newline codes

前端 未结 8 2279
别那么骄傲
别那么骄傲 2020-11-28 10:12

I\'m using fputcsv in PHP to output a comma-delimited file of a database query. When opening the file in gedit in Ubuntu, it looks correct - each record has a line break (no

8条回答
  •  孤街浪徒
    2020-11-28 11:13

    windows needs \r\n as the linebreak/carriage return combo in order to show separate lines.

提交回复
热议问题