PHP csv import - with commas in datafields

Hi Guys,

I’m importing a CSV file to mysql using PHP using the usual methods.

Obviously im splitting strings at commas - but the problem is that some of the data also contains commas!

How do i differentiate between the commas that are data, and the commas that separate my fields??

Really appreciate any input!