Im using the following code to output all the nodes from the xml shown.
$cursor = "?cursor=-1"
$xml= new SimpleXmlElement($to->OAuthRequest('http://twitter.com/statuses/followers.xml?$cursor'));
foreach ($xml->xpath('/users_list/users/user') as $user) {
$id = $user->id;
$names .= $user->screen_name;
$profimg = $user->profile_image_url;
}
$next = $user->next_link;
$prev = $user->prev_link;
$pusharray = array("$names", "$next", "$prev");
All i get back is Array ( [0] => [1] => [2] => )
Heres a sample of the xml
http://twitter.com/statuses/followers/barakobama.xml?cursor=-1
What am i doing wrong? Everything everyone has suggested has not worked! Im going insane.