linuxMaestro
Instructor
How do I cacluate days old in php?
I tried:
$born="2005-02-16";
$today=date("Y-m-d);
$diff=$today-$born;
But it gives 0 all the time.
I tried:
$born="2005-02-16";
$today=date("Y-m-d);
$diff=$today-$born;
But it gives 0 all the time.