$da = date("w");
if( $da == "1" ){
echo "今天是星期一";
}else if( $da == "2" ){
echo "今天是星期二";
}else if( $da == "3" ){
echo "今天是星期三";
}else if( $da == "4" ){
echo "今天是星期四";
}else if( $da == "5" ){
echo "今天是星期五";
}else if( $da == "6" ){
echo "今天是星期六";
}else if( $da == "0" ){
echo "今天是星期日";
}else{
echo "你输入有误!!";
};

Last modification:July 30th, 2020 at 09:09 am
如果觉得我的文章对你有用,请随意赞赏