I have a csv file that looks like this...
"jon roley","222 west main","54432"
"fred savage","333 clark ,suite a","53342"
I use the below code to explode then strip any quotes but sometimes there is an additional comma in the address field so when I explode it gives me an additional value in the array. How can I explode the csv file at the "," and not the commas within the fields???
$fields = str_replace('"','',explode(",", $fileArray[$c]));