You can skip any loop in PHP with the continue
statement. This will only skip 1 iteration of the loop, as apposed to the break
statement, which will end the loop completely.
Using this, you can form a condition for when the loop should skip:
while (!feof($file_handle)) {
$csv = fgetcsv($file_handle, 1024);
// check your condition and skip if needed...
if (in_array('FINAL TOTAL', $csv)) continue;
$data[] = $csv;
}