I have a CSV file I'm importing but am running into an issue. The data is in the format:
TEST 690, "This is a test 1, 2 and 3" ,$14.95 ,4
I need to be able to explode by the , that are not within the quotes...
See the fgetcsv function.
If you already have a string, you can create a stream that wraps it and then use
fgetcsv. See http://code.google.com/p/phpstringstream/source/browse/trunk/stringstream.php
The content is written by members of the stackoverflow.com community.
It is licensed under cc-wiki