Hi everyone
I'm using the Twitter API to return an array of results, but things like while(list) or foreach don't seem to work as I expect when I come to print them.
I think it's due to the presence of what I think is an object within the array but I don't know much about the structure of arrays and objects.
Here's the first result within the array. I don't know if I've tabbed the layout correctly.
Array (
[0] => stdClass Object (
[location] => Brooklyn: 40.716468,-73.614032
[profile_image_url] => http://a2.twimg.com/profile_images/123.jpg
[created_at] => Tue, 24 Aug 2010 08:42:56 +0000
[from_user] => Freakyy_WK
[metadata] =>
stdClass Object (
[result_type] => recent )
[to_user_id] => 71520846
[text] => @Choose_Diime dats close enough
[id] => 2147483647
[from_user_id] => 138613636
[to_user] => chOOse_Diime
[geo] =>
[iso_language_code] => en
[source] => <a href="#">uberTwitter</a> )
What I want to do is the equivalent of :
while(list($item, $location, etc etc etc)
{
print ($item." - ".$location."<br />");
}
Can anyone point me in the right direction please? And any hints on what this type of array is will be really appreciated!