【发布时间】:2014-02-21 14:42:24
【问题描述】:
我试图通过 twicth API 使用 json_decode() 获取数据,但是所有关于 json 的指南都有一个 twitch 不提供的主数组。
这是我正在使用的代码示例:
$api = file_get_contents("twitch.json");
$json = json_decode($api, true);
echo $json['channel'][0]['title'];
这是抽搐的反应: http://pastebin.com/18RgfVsZ(太大无法粘贴)
【问题讨论】: