Location: PHPKode > scripts > Slovenia Movie Show Times > slovenia-movie-show-times/SloveniaMovieShowtimes.example.php
<?php

require('SloveniaMovieShowtimes.php');

// Fetch showtimes for all available cities for the current date
$availableCities = array('ljubljana', 'maribor', 'celje', 'koper', 'kranj', 'novo mesto');
$date = date('d.m.Y');

foreach ($availableCities as $city)
{
    $showTimes = new SloveniaMovieShowtimes($city, $date);
    echo '<pre>';
    print_r($showTimes->fetchShowtimes());
    echo '</pre>';
}

?>
Return current item: Slovenia Movie Show Times