I need a suggestion how to convert Mon May 12 19:11:38 +0000 2014 into 2 minutes ago or 10 minutes ago.
My coding is something like this.
if(isset($tweets->statuses) && is_array($tweets->statuses)) {
            if(count($tweets->statuses)) {
                foreach($tweets->statuses as $tweet) { 
                    echo "<td>";
                    echo $tweet->user->screen_name; 
                    echo "</td>"; 
                    echo "<td>";
                    echo $tweet->text;
                    echo "</td>";
                    echo "<td>";
                    echo $tweet->created_at;
                    echo "</td>";
                echo "</tr>";
I've implemented something like this and I want to dig the created_at because it looks a bit weird. Anyway I've found many sources like this. But that one is not what I want. What I want is to make it show like 2 days ago, 10 days ago, yesterday. Any idea?
 
    