thinkphp3.2 判断星期几
后台
$w=date('w'); $week=array( "0"=>"星期日", "1"=>"星期一", "2"=>"星期二", "3"=>"星期三", "4"=>"星期四", "5"=>"星期五", "6"=>"星期六" ); $zhou =$week[$w]; $this->assign('zhou',$zhou);
前台
<time>{$zhou}</time>
后台
$w=date('w'); $week=array( "0"=>"星期日", "1"=>"星期一", "2"=>"星期二", "3"=>"星期三", "4"=>"星期四", "5"=>"星期五", "6"=>"星期六" ); $zhou =$week[$w]; $this->assign('zhou',$zhou);
前台
<time>{$zhou}</time>