Skip to content

Instantly share code, notes, and snippets.

@budidino
Last active August 29, 2015 13:57
Show Gist options
  • Save budidino/9681764 to your computer and use it in GitHub Desktop.
Save budidino/9681764 to your computer and use it in GitHub Desktop.
// example to help out someone on stackoverflow
// http://stackoverflow.com/questions/12916539/simplest-php-example-for-retrieving-user-timeline-with-twitter-api-version-1-1/16169848?noredirect=1#comment34312649_16169848
// get the array of tweets
$tweets = returnTweet();
// loop all the tweets and display each of them
foreach($tweets as $tweet){
echo "Tweet: " . $tweet["text"] . "<br>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment