Properly escape a double quote in CSV
Use 2 quotes:
"Samsung U600 24"""
Not only double quotes, you will be in need for single quote ('
), double quote ("
), backslash (\
) and NUL (the NULL byte).
Use fputcsv()
to write, and fgetcsv()
to read, which will take care of all.