Thanks for that. I was assuming that string indexes would begin with 1 because the first character in a string... anyway...
I'm trying to modify an import process that handles both CSV and tab delimited files and am having trouble when the file includes the header line and also when the import file is tab delimited because we are using :
while (($data = fgetcsv($handler, $filesize, ",")) !== FALSE)
I am testing to see if there is a tab in the line ($data[0]) and then exploding it back into the $data array like this:
if (strpos($data[0], "\t") !== false) {
$data = explode("\t", $data);
}
But having problems with the subsequent lines.
Any ideas?