Location: PHPKode > scripts > Weather class > weather-class/example.php
<?php
//Example Script courtesy of Laurent Girard for France Weather

include("weather_class_inc.php");
$w = new weatherservice();
$list = $w->getCountryList();
print_r($list);
echo "<hr>\n";
$list = $w->searchByCountry('france');
print_r($list);
echo "<hr>\n";
$list = $w->getWeatherReport('LFMN');
print_r($list);
echo "<hr>\n";
$text = $w->showAll('LFKB');
echo "$text";
?>
Return current item: Weather class