1){$aar_int .= " months ";}else{$aar_int .= " month ";} } if($uger != 0){$aar_int .= $uger;} if($uger != 0){ if($uger > 1){$aar_int .= " weeks ";}else{$aar_int .= " week ";} } if($dage != 0 && $aar_int != ""){$aar_int .= "and ";} if($dage != 0){$aar_int .= $dage;} if($dage != 0){ if($dage > 1){$aar_int .= " days";}else{$aar_int .= " day";} } if($show_age_only) { return ceil($aarfull); } else { return "".round($aarfull,2).""; } } /** * Function that shows the next year a certain day happens * * @param day - int, the day of the month * @param month - int, the month of the year */ function nextBirthYear($day,$month) { if((date('m')==$month && date('d')<$day) || (date('m')<$month)) { return "". date('Y'); } else { return "". date('Y')+1; } } if($_GET['date']) { echo $_GET['date']; echo "
"; echo years_func($_GET['date'],false); } ?>