class WeatherPage
{
public function getWeather($city)
{
$response = file_get_contents('http://api.openweathermap.org/data/2.5/weather?q='.$city.',uk&appid=32ae008b1c7259324aa50450687fabf5&units=metric');
$jsn = json_decode($response);
echo $jsn->main->temp;
echo '<br>';
echo $jsn->main->pressure;
echo '<br>';
echo $city;
}
}
$class = new WeatherPage();
$class->getWeather('London');