\n"; echo "".$monate[$monat-1]." ".$jahr.""; echo "\nMoDiMiDoFrSaSo\n"; echo "\n"; $i=1; while ($i<$erster) { echo " ";$i++; } $i=1; while ($i<=$insgesamt) { $rest=($i+$erster-1)%7; echo ""; if ($i==$heute) { echo "$i"; } else if ($rest==0) { echo "$i"; } else { echo "$i"; } echo "\n"; if ($rest==0) { echo "\n\n"; } $i++; } echo "\n"; echo "\n"; ?>