是否有任何PHP代码库具有从CSV文件中读取和解析信息的功能?

是否有任何PHP代码库具有从CSV文件中读取和解析信息的功能?

问题描述:

I am looking for some routines that will read and parse CSV files. I have written some code to do this, but the data files I download are not always evenly formatted for data extraction. I generally have to clean up the file manually before I can run my parser.

我正在寻找一些读取和解析CSV文件的例程。 我已经编写了一些代码来执行此操作,但我下载的数据文件并不总是均匀格式化以进行数据提取。 在运行解析器之前,我通常必须手动清理文件。 p> div>

Reading:

Writing: