I have an input CSV where the "columns" are not enclosed in anything.
File Contents ($ input = fopen ( filename );):
1,2,3,4,5,6,7
a, b, c, d, e, f, g
9,8,7,6,5,4,3
z, y, x, w, v, u, t
I am having problems working with fgetcsv () because there are no restrictions around the values.
while($row = fgetcsv($input)) { print_r($row); }
Results in:
1111
I tried some basic things that I could think of from my head:
fgetcsc($file, 0, ',', '\'); fgetcsc($file, 0, ',', '');
Any ideas for work? Manually editing my input file is not really an option, as it is several million lines.