echo "<br /><h3>Generated matches with matchdays but without free tickets</h3><br />";
$roundrobin->free_ticket = false;
// free tickets off
$roundrobin->create_matches();
if ($roundrobin->finished) {
    $i = 1;
    while ($roundrobin->next_matchday()) {
        echo "-------Matchday " . $i . "-------<br />";
        while ($match = $roundrobin->next_match()) {
            echo $match[0] . "  <b>vs</b>  " . $match[1] . "<br />";
        }
        $i++;
        echo "<br />";
    }
}
echo "<br /><h3>Generated matches without matchdays and changed teams </h3><br />";
$teams = array('John', 'Mike', 'Martin', 'Ron', 'Richard');
$roundrobin->pass_teams($teams);
$roundrobin->create_raw_matches();
if ($roundrobin->finished) {
    while ($match = $roundrobin->next_match()) {
        echo $match[0] . "  <b>vs</b>  " . $match[1] . "<br />";
    }
    echo "<br />";
}
echo "<h3>Simply accessing the matches/matchdays in array format (contains the result from the last match generation)</h3><br />";
echo '<pre>', print_r($roundrobin->matches, true), '</pre><br>';
echo 'Round Robin Schedule: ' . PHP_EOL;
$teams = array('Banbury United', 'Bashley', 'Bedford Town', 'Brackley Town', 'Cambridge City', 'Chippenham Town', 'Clevedon Town');
echo '<pre>', print_r($roundrobin->generateRRSchedule($teams, true), true), '</pre><br>';