1、计算星期几,传入时间戳
function getDay($time){ $array = array("日","一","二","三","四","五","六"); $s = date('w',$time); return ' 星期'.$array[$s]; }