if($bday[2] && $bday[2] < $year) { list($day, $month, $year) = explode("-", my_date("j-n-Y", time(), 0, 0)); $age = $year - $bday[2]; if(($month == $bday[1] && $day < $bday[1]) || $month < $bday[1]) { --$age; } $age = " ($age $lang->years_old)"; }