in reply to Re: Help with CSV file parsing
in thread Help with CSV file parsing

Hi Chris, thanks for your reply. I understand your point but just that I am trying to read only the double quote. If the text contains other special characters, I will need to read also...

Like
$var1 = 'a, a"s,d,f,g", 123'

Then the result I want will be:
Insert into person_info VALUES (a, a"s,d,f,g", 123)

Currently I can read every character without taking it out from the part of the text but if there is double quotes within the data, my generated SQL statements will be sort of screwed.