PHP returns the day of the week according to the timestamp .? Php02 ** 03 * return the day of the week based on the timestamp 04 * @ paramstring $ time timestamp 05 * @ return the day of the Week 06*07 functionweekday ($ time) 08 {09if (is_numeric ($ time) 10 {11 $ we
02 /**
03 * return the day of the week based on the timestamp
04 * @ param string $ time timestamp
05 * @ return day of week
06 */
07 function weekday ($ time)
08 {
09 if (is_numeric ($ time ))
10 {
11 $ weekday = array ('Sunday', 'Monday', 'Tuesday', 'wedday', 'thurs', 'Friday', 'satur ');
12 return $ weekday [date ('W', $ time)];
13}
14 return false;
15}
16 var_dump (weekday ($ _ SERVER ['request _ time']);
17?>
From: zookeeper's blog
Http://www.bkjia.com/PHPjc/478593.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/478593.htmlTechArticle? Php 02/** 03 * return the day of the week based on the timestamp 04 * @ param string $ time timestamp 05 * @ return day of the Week 06 */07 function weekday ($ time) 08 {09 if (is_numeric ($ time) 10 {11 $ we...