How to Parse JSON in php
$json ='{"id":1,"name":"foo","interest":["wordpress","php"]} '; $o...
https://iskablogs.blogspot.com/2014/03/how-to-parse-json-in-php.html
$json ='{"id":1,"name":"foo","interest":["wordpress","php"]} ';
$obj=json_decode($json);
echo $obj->interest[1]; //prints php
?>
$obj=json_decode($json);
echo $obj->interest[1]; //prints php
?>