Php 注意:未定义的偏移量:0第36行
错误 注意到:未定义的偏移量:0第37行 第37行Php 注意:未定义的偏移量:0第36行,php,Php,错误 注意到:未定义的偏移量:0第37行 第37行 $table = (table2)["response"]["players"][0]; 小切口 "); } $steamid64 = $_GET["steamid"]; $url = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $SteamAPIKey . "&steamids=" . $steamid64; $jso
$table = (table2)["response"]["players"][0];
小切口
");
}
$steamid64 = $_GET["steamid"];
$url = "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" . $SteamAPIKey . "&steamids=" . $steamid64;
$json = file_get_contents($url);
$table2 = json_decode($json, true);
//Undefined Variable which means it hasn't been Verified.
$table = $table2["response"]["players"][0];
print_r($table2);
?>
您可以使用print\u r($table2);在获得第一个玩家物品之前,查看$tables的结构
例如:
替换
借
您可以使用print\u r($table2);在获得第一个玩家物品之前,查看$tables的结构
例如:
替换
借
显然,
“players”
集合中没有任何元素。该代码假定存在。因此出现了错误。“players”
集合中显然没有任何元素。该代码假定存在。因此出现了错误。可能重复的
$table = $table2["response"]["players"][0];
print_r($table2);
print_r($table2);
$table = $table2["response"]["players"][0];