我正在尝试使用PHP从以下JSON文件获取数据。我特别想要"temperatureMin"和"temperatureMax"。
这可能非常简单,但是我不知道如何做。我卡在了file_get_contents("file.json")之后该怎么办。希望能得到一些帮助!
{
"daily": {
"summary": "No precipitation for the week; temperatures rising to 6° on Tuesday.",
"icon": "clear-day",
"data": [
{
"time": 1383458400,
"summary": "Mostly cloudy throughout the day.",
"icon": "partly-cloudy-day",
"sunriseTime": 1383491266,
"sunsetTime": 1383523844,
"temperatureMin": -3.46,
"temperatureMinTime": 1383544800,
"temperatureMax": -1.12,
"temperatureMaxTime": 1383458400,
}
]
}
}
header('charset=utf8');
。 - Amal Murali