function toweek($date){
$num = date(‘w‘,strtotime($date));
$week = array(‘0‘=>‘周日‘,‘1‘=>‘周一‘,‘2‘=>‘周二‘,‘3‘=>‘周三‘,‘4‘=>‘周四‘,‘5‘=>‘周五‘,‘6‘=>‘周六‘);
return $week[$num];
}
时间: 2024-11-05 20:29:25
function toweek($date){
$num = date(‘w‘,strtotime($date));
$week = array(‘0‘=>‘周日‘,‘1‘=>‘周一‘,‘2‘=>‘周二‘,‘3‘=>‘周三‘,‘4‘=>‘周四‘,‘5‘=>‘周五‘,‘6‘=>‘周六‘);
return $week[$num];
}