This is my code. I am trying to get number of trade offers through steam API. I can get an array but i dont know how to count number of items from this array
<?php
$json_url = "http://api.steampowered.com/IEconService/GetTradeOffers/v0001/?key=KEY&get_received_offers=1&active_only=1";
$json = file_get_contents($json_url);
$data = json_decode($json, TRUE);
echo '<pre>' . print_r($data, true) . '</pre>';
How can I get the number of [trade_offers_recived] ? Currently there are 2 trade offers recived (0 and 1)