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 API by using php?

Answers


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

?>

Need Your Help

Set Time Range of a Zend Dojo TextTimeBox

zend-framework dojo

Hi is it possible to set the time range of a Dojo textTimeBox to 09:00 - 18:30.

jqGrid with `multiselect: true` how can I make each row checked or not according to what the DB returns?

jquery jqgrid

Using jqGrid with multiselect: true how can I make each row checked or not according to what the DB returns?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.