Can't read csv(Tab delimited) properly
<p>I have simple csv file which is tab delimited which i have to use as it is because it is coming from somewhere and i hvae to read it and insert it into my db i have used a simple php code to read it</p>

<pre><code>if(($handle = fopen("var/import/MMT29DEC.csv","r"))!==FALSE){
            /*Skip the first row*/
            fgetcsv($handle, 1000,chr(9));
            while(($data = fgetcsv($handle,1000,chr(9)))!==FALSE){
                    print_r($data[0]);
                        }
}
</code></pre>

<p>When print_r the data it shows like </p>

<pre><code>Array ( [0] =&gt; 01SATAPC [1] =&gt; 40ATAPC [2] =&gt; [3] =&gt; 21P [4] =&gt; SERIAL ATA POWER CABLE [5] =&gt; 0.00 [6] =&gt; 2.00 [7] =&gt; 0 [8] =&gt; Power Supplies [9] =&gt; SERIAL ATA POWER CABLE [10] =&gt;
4 TO 15 PIN 160MM
[11] =&gt; [12] =&gt; [13] =&gt; [14] =&gt; MELBHO [15] =&gt; 0.000 [16] =&gt; [17] =&gt; Order to Order [18] =&gt; 4 [19] =&gt; 2013-01-18 ) 
</code></pre>

<p>Which is the desired result but when i go to access the particular column value using the $data['index'] e.g. $data[8] or $data[1] it weirdly giving me garbage values says for some iterations it give me right values but after 10-15 rows its starting giving me the some numbers and  other column values..... i don't know whats is going on with this as far as i  know it should be formatting issue i have tried open the file in excel and its coming fine.... </p>
