为什么程序报错?
1 2 3 4 5 6 | <?phpdate_default_timezone_set( 'asia/shanghai' ); $week = date ( "w" ) //获取当天星期几 if ( $week > 5){ echo "没课" ; } else { echo "有课" ; } ?> |
1 2 3 4 5 6 | <?phpdate_default_timezone_set( 'asia/shanghai' ); $week = date ( "w" ) //获取当天星期几 if ( $week > 5){ echo "没课" ; } else { echo "有课" ; } ?> |
2021-08-30
举报