title: Getting last tweet with PHP
body: <p>To get my last tweet in PHP I use this code :</p>
  
  <pre><code>function getTweets($tweetsToDisplay, $user_id) { 
  
  $twitterrequest = 'http://api.twitter.com/1/statuses/user_timeline.json?user_id=' . $user_id . '&amp;include_rts=true&amp;count=' . $tweetsToDisplay; 
  $twitterci = curl_init($twitterrequest); 
  curl_setopt($twitterci, CURLOPT_RETURNTRANSFER, TRUE); 
  $twitterinput = curl_exec($twitterci); 
  curl_close($twitterci); 
  return ($twitterinput); 
  
  } 
  
  $user_id = '99999999';
  $var = json_decode(getTweets(1, $user_id));
  $txt = $var[0]-&gt;text;
  $txt = preg_replace('%(https?://)[^\s]*%', '$1...', $txt);
  echo $txt;
  </code></pre>
  
  <p>Works fine but I want to get the date as well. How to extract it ?</p>