NYCPHP Meetup

NYPHP.org

[nycphp-talk] fgetcsv alternatives?

Fan, Wellington wfan at VillageVoice.com
Tue Aug 23 13:58:18 EDT 2005


Hello Listies,

the basic call to fgetcsv looks like this:
array fgetcsv (int fp, int length) 

where:
"fp must be a valid file pointer to a file successfully opened by fopen(),
popen(), or fsockopen()"

I have a large buffer that I'd like to parse as CSV -- so is there a
function similar to fgetcsv() that could operate on a string buffer rather
than a filehandle?

--
Wellington



More information about the talk mailing list