Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Request #7742 CSV string parsing
Submitted: 2006-05-28 22:57 UTC
From: olivierg Assigned:
Status: Open Package: File_CSV
PHP Version: 4.4.2 OS: Debian
Roadmaps: (Not assigned)    
Subscription  


 [2006-05-28 22:57 UTC] olivierg (Olivier Guilyardi)
Description: ------------ Could you please add a feature to parse a string that contains CSV data. Like : $array = File_CSV::parse($string); I know this is not really about files, but it concerns CSV. I need it and am about to copy/paste some of your parsing routines into my code, which is not the best thing IMO.

Comments

 [2006-06-04 01:04 UTC] dufuz (Helgi Þormar)
I once created a string only CSV package but never proposed it, I don't think this belongs in File_CSV, that feature that is. It's a bit more than just copy/paste to get string only working for your info, to keep the same way of doing things anyhoo but well we'll see what happens when I have time later this year if I update the string package and propose it.