nbsp;HTML PUBLIC"-//W3C//DTD HTML 4.01 Transitional//En"> 例题1 // 使用PHP显示当天的日期 echo"今天是:"; print date("Y")."年".date("m")."月".date("d")."日"; $week= array("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); print $week[data("w")].""; ?> 急!!!!求高手指点呀 回复讨论(解决方案) print $week[dat a("w")].""; 不是data,是date 谢谢, OK了 print $week[dat a("w")]."";改成:print $week[date("w")]."";