hi...
i'm using fgets or freads to read the first line only of a file that has a few names separated by tabs. thing is once retreived the line apparetntly is no longer separated by tabs.
$contents = fread($handle, filesize($newfile));
$new_line = strpos($contents, "\n");
rewind($handle);
//$buffer = fgets($handle, $new_line);
$buffer = fread($handle, $new_line);
then
$names = explode('\t',$buffer);
pront_r($names);
i get:
Array ( [0] => name1 name3 name3 etc )
why?
what i expect is:
Array ( [0] => name1, [1]=> name2, [2]=> name3, etc )