Skip to content

Instantly share code, notes, and snippets.

@vsync
Created April 10, 2013 21:14
Show Gist options
  • Save vsync/5358489 to your computer and use it in GitHub Desktop.
Save vsync/5358489 to your computer and use it in GitHub Desktop.
$datetime = new DateTime($tweet['created_at']);
$date = date_format($datetime, 'd/m/y');
$data[] = array(
'url' => 'https://twitter.com/ ' . $tweet['user']['screen_name'] . '/status/' . $tweet['id_str'],
'text' => $tweet['text'],
'created_at' => $date
'screen_name' => $tweet['user']['screen_name']
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment