I have function which read csv file in the array. my code is
public function csvExtract()
{
$file_handle = fopen(text.csv, 'r');
while (!feof($file_handle) )
{
arraydata[] = fgetcsv($file_handle, 1024);
}
fclose($file_handle);
}
what i need is:
my file contain last row which has FINAL TOTAL that row i want to skip .
how to do this. Can any one help me on this.
thank you.