Reputation: 274
Since my file columns are separated by a tab, I use the following:
while (($data = fgetcsv($handle, 1000, "\t")) !== FALSE) {
But is there a way to deal with a string delimiter as well?
Upvotes: 1
Views: 17
Reputation: 115
Add more one optional parameter:
$data = fgetcsv($handle, 1000, "\t", "\"");
Here more information about fgetcsv
Upvotes: 1