$dataToGo=[]; foreach($data as $entry) $dataToGo['$entry['key']]=$entry;
$lines=explode("\n",file_get_contents('file.conf'));
$params=array();
foreach ($lines as $line) {
$line=trim($line);
if (strpos($line,'#')===0) continue;
$pair=explode('=',$line,2);
$params[trim($pair[0])]=trim($pair[1]);
}
uksort($arr,function($a,$b){ return $b['count'] - $a['count'];})