getAge() - Classical
Posted: Tue Aug 30, 2005 5:28 am
Hi,
I know this is funny but once again I want to relive this issue. I want to reduce it to one line.
My attempt goes like...
You are free to give your opinion on that.
I know this is funny but once again I want to relive this issue. I want to reduce it to one line.
My attempt goes like...
Code: Select all
$age = (date("Y") - $bday_year) - ($bday_month >= date("m") ? ($bday_day >= date("d") ? 0 : 1) : 1);