【发布时间】:2022-01-23 04:41:31
【问题描述】:
您好,我正在制作一个读取 Steam 库存的程序。我收到此错误:
Parse error: syntax error, unexpected '0' (T_LNUMBER), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/runner/SteamTradingTies/index.php on line 59
这是 Steam 的 API 还是 PHP 的问题? 有谁知道如何解决这个问题?
这是我的代码:
<?
$data = file_get_contents("https://steamcommunity.com/inventory/" . $steamprofile['steamid'] . "/252490/2?count=5000");
$decodedData = json_decode($data);
echo $decodedData->descriptions->0->name;
?>
【问题讨论】: