/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $username = "TwitterUsername"; // Your twitter username. $prefix = ""; // Prefix – some text you want displayed before your latest tweet. $suffix = ""; // Suffix – some text you want display after your latest tweet. $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1"; function parse_feed($feed) { $tweet = $stepTwo[0]; return $tweet; } ?>