Valando, geboren am 06. Februar 2014, ist heute

0){ if($difference[3] == 1){ echo $difference[3]. ' Tag '; }else{ echo $difference[3]. ' Tage '; } } echo 'oder '; echo '
'; if($difference[4] > 0){ if($difference[4] == 1){ echo $difference[4]. ' Woche '; }else{ echo $difference[4]. ' Wochen '; } } if($difference[5] > 0){ echo ' und '; if($difference[5] == 1){ echo $difference[5]. ' Tag '; }else{ echo $difference[5]. ' Tage '; } } echo 'oder '; echo '
'; if($difference[0] > 0){ if($difference[0] == 1){ echo $difference[0]. ' Jahr '; }else{ echo $difference[0]. ' Jahre '; } } if($difference[1] > 0){ if($difference[1] == 1){ echo $difference[1]. ' Monat '; }else{ echo $difference[1]. ' Monate '; } } if($difference[2] > 0){ echo ' und '; if($difference[2] == 1){ echo $difference[2]. ' Tag '; }else{ echo $difference[2]. ' Tage '; } } echo 'alt.'; echo '
'; echo 'In '; if($difference[6] > 0){ if($difference[6] == 1){ echo $difference[6]. ' Tag '; }else{ echo $difference[6]. ' Tagen '; } } $yt = $difference[0] + 1; $yt = ($yt == 0) ? '' : ($yt == 1) ? ' ' . $yt . ' Jahr. ' : ' ' . $yt . ' Jahre. '; echo ' wird ' . $name . ' ' . $yt; echo '
'; $tag[0] = "Sonntag"; $tag[1] = "Montag"; $tag[2] = "Dienstag"; $tag[3] = "Mittwoch"; $tag[4] = "Donnerstag"; $tag[5] = "Freitag"; $tag[6] = "Samstag"; $tagnummer = date("w", mktime ( 0, 0, 0, $month, $day, $year )); // Tag ermitteln echo $name . ' wurde an einem ' . $tag[$tagnummer] . ' geboren.'; ?> format('%y'); $months = $interval->format('%m'); $days = $interval->format('%d'); $totaldays = $interval->format('%a'); $restdays = $totaldays % 7; $weeks = round($totaldays / 7, 0); $resttoyear = 365 - $totaldays % 365; return array($years, $months, $days, $totaldays, $weeks, $restdays, $resttoyear); } ?>