while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
if(!array_filter($n)){
$header = true;
+ continue;
}
if(!$header){
foreach($n as $k) {
$cols[] = strtoupper(trim($k));
}
-
+ print_r($cols);exit;
if (empty($cols)) {
continue;
}
- print_r($cols);exit;
+
foreach($req as $r) {
if (!in_array($r,$cols)) {
print_r($r);
$rows[] = $row;
}
- exit;
+
if (empty($cols)) {
$this->jerr("could not find a row with " . implode(' / ', $req));
}