I have a text file which I need to upload in to the server& later parse in to db.
In the txt file the fields r separated by , & enclosed by
I can split the values in txt file using explode fn.
$piece=explode(",",$fcontents[$i]);//where $fcontents contains the text file loaded in to the server.
b4 parsing in to db, I try to trim the function to eliminate "(double quotes) by below coding
but still I could see values with double quotes when I try to display it in the browser b4 parsing.
can anyone guide me on how to prevent double quotes from being displayed.