PHP fgetcsv escape '\'
<p>A csv file contains a '\' character in one of its record for which i am not able to get the exact number of key value pair in the array. </p>

<p>I am using PHP fgetcsv function as follows-</p>

<pre><code> while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
   ....
 }
</code></pre>

<p>I have also tried escaping the characters as follows.</p>

<pre><code> while (($data = fgetcsv($handle, 1000, ",",'"',"\\")) !== FALSE) {
    ....
 }
</code></pre>

<p>But it did not work.What might be the possible solution?</p>
