I am working on a PHP twitter feed for my web-site. So far I have figured out how to output date, but what I'm looking to do is pick out the urls and hyperlink them. I also would like to pick out the #hashtags, hyperlink them to search twitter. I'm just starting to learn PHP, so any help would be appreciated.
<?php
$count = 5;
$tweet=json_decode(file_get_contents("http://api.twitter.com/1/statuses/user_timeline/atrueresistance.json?count=".$count."" ));
for ($i=1; $i <= $count; $i++){
echo "<div class='tweet'>".$tweet[($i-1)]->text."
<div class='tweet_date'>". date("M \- j",strtotime($tweet[($i-1)]->created_at))."
</div>
</div>";
}
?>
Since no one is responding to this, I figured it is about time I put what code I came up with.
Enjoy!