My last Tweet";
// Suffix - some text you want display after your latest tweet. (Same rules as the prefix.)
$suffix = "";
$feed = "http://search.twitter.com/search.atom?q=from:" . blu3ph03nix . "&rpp=1";
function parse_feed($feed) {
$stepOne = explode("
", $feed);
$stepTwo = explode("", $stepOne[1]);
$tweet = $stepTwo[0];
$tweet = str_replace("<", "<", $tweet);
$tweet = str_replace(">", ">", $tweet);
return $tweet;
}
$twitterFeed = file_get_contents($feed);
echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);
?>
Will you be at the NY Sheep and Wool festival? Yay! We hope to see you at one of our Ravelry meetups! http://t.co/X6h0jaxO