2013-06-17, 10:18 AM
Hello
I am trying to "echo" the elements from json_decode.
My Current code is:
i make external file, and it show what i want inside $fb->likes, but when i am going to put it into template, it doesnt show.
Any1 one know how to parse it correctly??
PS: tried $fb->likes, $fb['likes'], $fb->data['likes'], {$fb->likes}, {$fb['likes']}, {$fb->data['likes']}
dump?
I am trying to "echo" the elements from json_decode.
My Current code is:
$fb_url = "http://graph.facebook.com/HardZoneFM";
$fb_json = file_get_contents($fb_url);
$fb = json_decode($fb_json);
i make external file, and it show what i want inside $fb->likes, but when i am going to put it into template, it doesnt show.
Any1 one know how to parse it correctly??
PS: tried $fb->likes, $fb['likes'], $fb->data['likes'], {$fb->likes}, {$fb['likes']}, {$fb->data['likes']}
dump?