Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
fgetcsv函数不将 (CR) 理解为\r有效的行分隔符。有没有办法解决这个问题,或者我应该编写自己的解析器?
\r
编辑:这解决了它:
逐行读取文本文件php - 未检测到换行符
如果在读取 Macintosh 计算机上或由 Macintosh 计算机创建的文件时 PHP 不能正确识别行尾,启用auto_detect_line_endings运行时配置选项可能有助于解决问题。