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!