Return to Snippet

Revision: 23841
at February 15, 2010 08:54 by maryann


Initial Code
<?php
$xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=catswhocode');
if (preg_match('/followers_count>(.*)</',$xml,$match)!=0) {
	$tw['count'] = $match[1];
}
echo $tw['count'];
?>

Initial URL
http://www.wprecipes.com/display-the-total-number-of-your-twitter-followers-on-your-wordpress-blog

Initial Description


Initial Title
Get amount of Twitter followers

Initial Tags
twitter

Initial Language
PHP