isFound()) {
$city = $gweather->getCity();
$currentTemp = $gweather->getCurrent();
$forecastTemp = $gweather->getForecast();
$present_weather = 'Actuellement : '.$currentTemp['temp_c'].'°C - '.$currentTemp['condition'];
$i=0;
foreach($forecastTemp as $temp) {
${'future_weather'.$i} = $temp['day_of_week'].' : '.$temp['low'].'°C | '.$temp['high'].'°C - '.$temp['condition'];
$i++;
}
if(strpos(strtolower($present_weather),"soleil") !== false) {?>
}
if(strpos(strtolower($present_weather),"nuage") !== false) {?>
}
if(strpos(strtolower($present_weather),"peu nuageux") !== false) {?>
}
if((strpos(strtolower($present_weather),"pluie") !== false) || (strpos(strtolower($present_weather),"averse") !== false)) {?>
}
if(strpos(strtolower($present_weather),"neige") !== false) {?>
}
}else{ $present_weather = 'Ville non trouvé : '.$city; }
}else
$present_weather = 'Ville non renseignée';