$url = 'http://www.domain.com';
$fb = json_decode($output);
$count = $fb->{$url}{'shares'};
echo $count; // should be 942
to get the 942 result, what am i doing wrong?
var_dump($output);
object(stdClass)#210 (1) { ["http://www.domain.com"]=> object(stdClass)#211 (2) { ["id"]=> string(19) "http://www.domain.com" ["shares"]=> int(942) } }j