<?php
@ini_set('date.timezone', 'Asia/Shanghai');
$a=date("l");
switch($a){
case "Monday":
echo "今天是星期一";
break;
case "Tuesday";
echo "今天是星期二";
break;
case "Wednesday":
echo "今天是星期三";
break;
case "Thursday":
echo "今天是星期四";
break;
case "Friday";
echo "今天是星期五";
break;
case "Saturday";
echo "今天是星期六";
break;
case "Sunday";
echo "今天是星期天";
}
@ini_set('date.timezone', 'Asia/Shanghai');
$a=date("l");
switch($a){
case "Monday":
echo "今天是星期一";
break;
case "Tuesday";
echo "今天是星期二";
break;
case "Wednesday":
echo "今天是星期三";
break;
case "Thursday":
echo "今天是星期四";
break;
case "Friday";
echo "今天是星期五";
break;
case "Saturday";
echo "今天是星期六";
break;
case "Sunday";
echo "今天是星期天";
}
?>