hmm... n teams mean (1/2)n(n-1) combinations, or n(n-1) lines of fixtures.
For 100 teams this means 9900 lines of fixtures, which might be rather long for a single page.
$teams = array("A", "B", "C");
$teams_count = count($teams);
for ($i = 0; $i < $teams_count; $i++) {
for ($j = 0; $j < $teams_count; $j++) {
if ($i != $j) {
echo $teams[$i] . " --> " . $teams[$j] . "<br />\n";
}
}
echo "<br />\n";
}
You should be able to use a foreach loop instead.
EDIT:
been coding too much C++, my indices arent PHP variables anymore 😛