Looping through with dates syntax issue
<p>I have created a fixture generator for football/ soccer games...</p>

<pre><code>    for ($round = 0; $round &lt; $totalRounds; $round++) {
        for ($match = 0; $match &lt; $matchesPerRound; $match++) {
            $home = ($round + $match) % ($teams - 1);
            $away = ($teams - 1 - $match + $round) % ($teams - 1);
            // Last team stays in the same place while the others
            // rotate around it.
            if ($match == 0) {
                $away = $teams - 1;
            }

            $rounds[$round][$match] = "$user[$home]~$team[$home]@$user[$away]~$team[$away]~$roundDates[$round]";
        }
    }
</code></pre>

<p>I am altering the question as I am almost there.</p>

<pre><code>$roundDates[$round]
</code></pre>

<p>This piece of code, i need $round-1.
What is the correct syntax for this?
Cheers</p>
