View Single Post
Old 10-30-2009, 03:38 PM   #9 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,239
Thanks: 3
Salathe is on a distinguished road
Default

That data appears to be not comma-separated, but tab-separated. The commas shouldn't be an issue if you specify the correct delimiter (comma in CSV, tab in TSV, etc.).

PHP Code:
$handle fopen("test.tsv""r");
while ((
$row fgetcsv($handle1000"\t")) !== FALSE) {
    
print_r($row);
}
fclose($handle); 
Code:
Array
(
    [0] => Wiley, Jimmie
    [1] => 963144
)
Array
(
    [0] => Johnson, Michelle
    [1] => 1009959
)
Array
(
    [0] => Lynn, Kenya
    [1] => 1183526
)
Array
(
    [0] => Johnson, Gregory
    [1] => 1189881
)
Array
(
    [0] => Dixon, Kendric
    [1] => 1189915
)
__________________
salathe@php.net
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
Dave (10-30-2009)