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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With