EntropySink
Technical & Scientific => Programming => Topic started by: ober on May 29, 2012, 10:22:17 PM
-
I parse a lot of files and I was doing it all manually, reading in each line of the file, splitting on commas, processing. Then the client uploaded a file that had commas in the data I was reading.
http://www.php.net/manual/en/function.str-getcsv.php
I made one change from explode to that and it fixed everything. Booya. There is also http://www.php.net/manual/en/function.fgetcsv.php if that is of any interest to anyone.