I have a date stored in my mysql database and I can workout the days since the date like so,
ceil(time() - strtotime($account['joined']) / 60 / 60 / 24 % 365);
But how can I work out the years, since years is the highest format of time, since after that it is millenia and such?
The variable is one such as:
2011-10-06 22:01:57
Thanks