I need to extract below fields from JSON, cant able to traverse some objects.
jSON (https://api.myjson.com/bins/19l74k)
Here is loop code
$results = json_decode($json,true);
foreach($results['data'] as $res){
echo $res['message']."<br/><br/>";
echo $res['shares']."<br/><br/>";
echo "<hr/>";
}
Need to extract Shares Count, Comments(total_count),reactions(total_count). I tried looping shares with ['data'] but undefined index issue.