开发者

How to evaluate the json response from google's JSON/Atom Custom Search API by using php?

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

?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜