http://www.ideaxidea.com/archives/2010/11/php_snippets.html
■ フォロアーの数を取得

一番よく使いそうですな。

function get_followers($twitter_id){
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name='.$twitter_id);
if (preg_match('/followers_count>(.*)</',$xml,$match)!=0) {
$tw['count'] = $match[1];
}
return $tw['count'];
}

せっかくXMLで返してくれるAPIなのに正規表現って・・・
しかも$tw配列に入れて返す必要性あるのか