Perad Posted July 31, 2009 Share Posted July 31, 2009 print_r($friends); Gives me the following. Array ( [1] => stdClass Object ( [id] => 35231793] ) [2] => stdClass Object ( [id] => 35231794] ) // Continue 30 more times. ) How do I loop through this array and echo out the id value? Link to comment https://forums.phpfreaks.com/topic/168257-loop-through-an-object/ Share on other sites More sharing options...
Perad Posted July 31, 2009 Author Share Posted July 31, 2009 Got it. $friends[$i]->screen_name; Link to comment https://forums.phpfreaks.com/topic/168257-loop-through-an-object/#findComment-887479 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.