开发者

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

开发者 https://www.devze.com 2023-01-27 21:40 出处:网络
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

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

精彩评论

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

关注公众号