Home >Backend Development >PHP Tutorial >PHP fgetcsv solves the problem of reading ending with '\r'

PHP fgetcsv solves the problem of reading ending with '\r'

藏色散人
藏色散人forward
2021-02-20 17:24:482547browse

PHP fgetcsv solves the problem of reading ending with '\r'

Related recommendations: "PHP Video Tutorial"

ini_set("auto_detect_line_endings", true);

Record this configuration, fgetcsv solves the problem of reading ending with "\r ” Question

There is such a note in the PHP document
fgetcsv解决读取结尾是“ \ r”
The specific PHP document https://www.php.net/manual/en/function.fgetcsv. php

The above is the detailed content of PHP fgetcsv solves the problem of reading ending with '\r'. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete