Facebook style time ago function using PHP
After so much trial and error i have come up with a php function to show elapsed time, facebook style "just now" or " a few minutes ago" etc.
Feel free to use it and hope it will save you some good amount of time!