Is it possible to use fgetcsv
in PHP to open a tab-delimited file?
Is it possible to use fgetcsv
in PHP to open a tab-delimited file?
$csvData = fgetcsv($fileHandle, 0, "");
Where $fileHandle
is a valid file handle. The 0 is just to tell the function not to limit seeking through lines (however you can change this to suit, the docs do say not imposing a limit decreases performance).