Here is the sorted list of the most prolific correctors! Are you in?
[insert_php]
$tab=array();
if (($handle = fopen(“./numnom.csv”, “r”)) !== FALSE) {
while(!feof($handle)){
$csv = fgetcsv($handle, 0, “\t”);
array_push($tab, $csv[1]);
}
//print_r($tab);
$uni = array_unique($tab);
$uni = array_diff($uni , [“”]);
//print_r($uni);
rewind($handle);
$palmares=array();
foreach ($uni as $val){
$i=0;
while(! feof($handle)){
$ligne = fgetcsv($handle, 0, “\t”);
if ($ligne[1]==$val){
$i++;}
}
$palmares[$val] = $i;
//echo “
$val : $i receipts!”;
rewind($handle);
}//eofforeach
arsort($palmares);
//print_r($palmares);
foreach($palmares as $k => $v){
echo “
“.stripslashes($k).” : $v receipts!”;
}
fclose($handle);
}
rewind($palmares);
echo “
Total processed : “.array_sum($palmares);
[/insert_php]
