时间:2021-07-01 10:21:17 帮助过:21人阅读
02 /**
03 * 根据时间戳返回星期几
04 * @param string $time 时间戳
05 * @return 星期几
06 */
07 function weekday($time)
08 {
09 if(is_numeric($time))
10 {
11 $weekday = array('星期日','星期一','星期二','星期三','星期四','星期五','星期六');
12 return $weekday[date('w', $time)];
13 }
14 return false;
15 }
16 var_dump(weekday($_SERVER['REQUEST_TIME']));
17 ?>
摘自:尐桀的博客
http://www.bkjia.com/PHPjc/478593.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478593.htmlTechArticle?php 02 /** 03 * 根据时间戳返回星期几 04 * @param string $time 时间戳 05 * @return 星期几 06 */ 07 function weekday($time) 08 { 09 if(is_numeric($time)) 10 { 11 $we...