Tage in Deutsch
Wochentage mit einer If-Abfrage eindeutschen
|
Script: |
<?php
$tag = date("l");
if ($tag ==
"Monday")
$tag = "Montag";
if ($tag ==
"Tuesday")
$tag = "Dienstag";
if ($tag ==
"Wednesday")
$tag = "Mittwoch";
if ($tag ==
"Thursday")
$tag = "Donnerstag";
if ($tag ==
"Friday")
$tag = "Freitag";
if ($tag ==
"Saturday")
$tag = "Samstag";
if ($tag ==
"Sunday")
$tag = "Sonntag";
echo $tag;
?>
|
|