0

Hello there :)

I got this json:
http://steamcommunity.com/id/spekat/inventory/json/730/2

In place of "spekat" - has different account names with different information.

I want to get "classid" index with information (like numbers)

Now my code is like this:

<?php
$urljson2 = file_get_contents("http://steamcommunity.com/id/$steam_acc/inventory/json/730/2/");
$json_decode2 = json_decode($urljson2);
$inventory = $json_decode2->rgInventory->classid;
?>

But not work, maybe because after rgInventory have numbers (index) wich i dont know.
My questions is how to skip this index and direct getting info from classid ?
Thanks!

Edited by grakovski: Formatting fixed

2
Contributors
1
Reply
31
Views
2 Years
Discussion Span
Last Post by gabrielcastillo
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.