The csv file contains the character '\' in one of its entries, for which I cannot get the exact number of the key value pair in the array.
I use the fgetcsv PHP function as follows:
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) { .... }
I also tried to hide the characters as follows.
while (($data = fgetcsv($handle, 1000, ",",'"',"\\")) !== FALSE) { .... }
But that did not work. What could be a possible solution?
source share