Location: PHPKode > scripts > Cup Scheduler > cup-scheduler/example.php
<?php
###################################################################################################
#  Cup Scheduler LITE v1.
#  Copyright (c) Martin "duno" Polacik <hide@address.com> 2009. All Rights Reserved.
#
#  Cup Scheduler LITE is free php script writen to generate soccer schadule for league cup.
#  Hope it will be usefull. This script is distributed in GNU GPL licence. 
#  See the GNU General Public License for more details http://www.gnu.org/licenses/.
###################################################################################################
 //charset setup
 header("Content-type: text/html; charset=utf-8");
 //include main class
 include("class.cupScheduler.php");
 //default array, you can also load data from db and store them into array
 $array = Array("Arsenal", "Liverpool", "Everton", "Tottenham", "Nantes", "Barcelona", "Lokomotiv Moskva", "Slovan Bratislava");
 //load default class
 $load = new CupScheduler();
 //load default method
 $load->generate_schedule($array);
?>
Return current item: Cup Scheduler