I have this readCSV function that for now skips the first line, but I need it to skip the three first lines.
What is the preferred way of achieving that?
function readCSV($csvFile){
$file_handle = fopen($csvFile, 'r');
while (!feof($file_handle) ) {
$array = fgetcsv($file_handle, 'r', ';');
$line_of_text[] = array('dato'=>$array[0],'vs'=>trim($array[1]),'vf'=>trim($array[2]));
}
fclose($file_handle);
return $line_of_text;
}
$csvFile = 'http://some.file.csv';