How to evaluate the json response from google's JSON/Atom Custom Search AP开发者_C百科I by using php?
use json_decode to convert the response into an object you can iterate through
http://php.net/json_decode
From PHP's site for that function:
<?php
$json = '{"foo-bar": 12345}';
$obj = json_decode($json);
print $obj->{'foo-bar'}; // 12345
?>
精彩评论