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
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!