Sorry I am very new in leaning PHP. I have tried to seach this topic, but did not get the answer, hope some one can help me.
I try to display from API Json from Rottentomatoes, If Rottentomatoes Json Output :
{"total":109,"reviews":[{"critic":"Andrea Chase","date":"2014-07-25","original_score":"2/5","freshness":"rotten","publication":"Killer Movie Reviews","quote":"succeeds only as an advertisement for the tablet mentioned every dozen words or so, and that forms the McGuffin chased with sadly ineffectual diligence by Segal and Diaz.","links":{"review":"hxxp://www.killermoviereviews.com/main.php?nextlink=display&dId=1818&subLinks="}}]
How i display "Andrea Chase" value it in php?
Right Now i susses to display "109" from "total" value, here is my code
e$url1 = 'hxxp://my-url-api-link';
$data = json_decode(file_get_contents($url1));
$total = $data->total;
echo $total;