Im using wunderground.com weather API.
I got JSON to an array.buy i coudlnt echo arrray one by one.
these the sample code to i used in my site $json = file_get_contents("http://api.wunderground.com/api/ab3f1aefcf4033d4/forecast10day/q/CA/San_Francisco.json");
//$phparrya = json_decode($jsonstring);
$array_json=json_decode($json, true);
print_r($obj);
This problem is actually cause by the data is not in correct format. As the data provided is in {features: {forecast10day: 1 }} format while the json decode function accept {"features": {"forecast10day": 1}}
1
Featured Replydiafol
What data did you want to extract? The textforecast/forecast data array would be:
APLX is a very complete implementation of the APL programming language from MicroAPL. The company stopped producing it in 2016 and it has been taken over by Dyalog. While Dyalog ...