I got a script that saves a timestamp (using time() function) every time a user does a special action.
I want to show on a page how long ago a user did this action, in an easy to read user way. I currently got it to show how many hours ago it approximately was, but I’d like it to return in a way looking like this:
1 day, 5 hours and 30 mintues way…
To achieve what you want, you can simply do
A more versatile solution