TeamCount) || ($ib > TeamCount)) { continue; } $na = strtolower($teams[$ia]['name']); $nb = strtolower($teams[$ib]['name']); $mid = $match['id']; if ($match['class'] < 100) { $mid += 1000; } echo "$mid:$na:$nb\n"; } CloseQuery(); ?>