开发者

Backslashes in csv files

I'm using php to read a csv file with tab as delimiter. I got a problem if the file contains backslashes. If I use the function 开发者_运维知识库stripslashes it works but I want to keep the values how they are in the csv file.

I think this issue is very strange. Anyone has an idea why is this happening?

Thanks.


Without seeing the code I can't give you any specific answers. However, from personal experience, when working with CSV files I've had the best luck using fgetcsv.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜