<?php
//根据时间戳获取是星期几
function getTimeWeek($time) {
  $weekarray = array("一", "二", "三", "四", "五", "六", "日");
  $oneD = 24 * 60 * 60;
  return "周" . $weekarray[date("w", $time - $oneD)];
}
Last modification:February 11th, 2018 at 11:31 am
If you think my article is useful to you, please feel free to appreciate