I am creating a comma separated file using a data array in a loop. But the problem is that if any location in the array already has a comma then it does not create a correct comma separated file.
How do I include a string with a comma in comma separated file.
Thanks
Put qoutation marks (
") around the string. If you also have ” in the string, escape those by doubling. Example row:So, if you have a string in the variable $field, normalize the field in this fashion: