With PHP, use json_decode($jsonencoded, true).
That returns a standard array, which is far easier to process than the
JSON object.
Dewald
foreach($json->results as $result){
$result->item;
}
will do.
--
A K M Mokaddim
http://talk.cmyweb.net
http://twitter.com/shiplu
Stop Top Posting !!
বাংলিশ লেখার চাইতে বাংলা লেখা অনেক ভাল
Hi TrixJo,
Try this:
[code]
for( $counter = 0; $counter <= 5; $counter++){
echo $json->results[$counter]->text;
}
[/code]
-Chad
On Sat, Aug 22, 2009 at 7:26 AM, TrixJo wrote:
>
> I am using the Twitter API and have the following JSON object returned
> after a search query. print_r($json) is