Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$lat ="34.0330";
$lon = "35.0045";
$key = "523df554f4e883874873853b897b6da0";
$url = "https://api.openweathermap.org/data/2.5/forecast?lat=$lat&lon=$lon&appid=$key";
$data = file_get_contents($url);
$json = json_decode($data,true);
#$cb1 = $json['list']['0']['main']['temp'];
$cb2 = $json['0']['list']['weather']['desciption'];
#$tempe = $cb1-273.15;
print_r($cb2);