Help me


#1

how do I do this function shows the users who follow me?

$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$access_token[‘oauth_token’], $access_token[‘oauth_token_secret’]);

$content = $connection->get(‘account/verify_credentials’);

$totalFollowers = $content->followers_count;

$cursor = -1;

$qtd = ceil($totalFollowers/100);

for($z=0;$z<$qtd;$z++){
$result = $connection->get(‘statuses/followers’, array(‘cursor’ => $cursor));
$cursor = $result->next_cursor_str;
$user = $result->users;
$total = count($user);
for( $i=0;$i<$total;$i++ ){
$users[] = $user[$i]->screen_name;
}
}