How to substract date? (PHP)

hipro1

New Member
Messages
22
Reaction score
0
Points
0
Well the idea is to substract the joining date of the user to the actual date, and show the result.

So for example if the user joined on July 22, 2009, print something like "You're 1 day old".

Of course the joining date would come from the users table.

Thanks!
 
Top