我正在尝试使用 PHP 从下面的 JSON 文件中获取数据。
可能很简单,但我不知道怎么做。我一直在纠结 file _ get _ content (“ 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,
}
]
}
}