How do I get data from a csv file, if the fields have commas in them?
right now, i have:
$sep=',';
list($col_1,$col_2) = explode($sep, $line);
but that splits up fields with commas
thanks
Using Data from csv file
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA