Weather API
$location ='Birmingham,UK';
$apikey = 'e75eaefe145bda0ad35fae4df4339cb7'
curl_setopt($ch, CURLOPT_URL, 'http://api.openweathermap.org/data/2.5/weather?q='.$location.'&appid='.$apikey, 1);
$output= curl_exec($ch);
curl_close($ch);
$output = json_decode($output, true);
echo "
The weather in".$location."is ".$output['weather'][0]['main']."
";