当前位置:网站首页>PHP generate schedule
PHP generate schedule
2022-06-12 10:20:00 【Qu Shuai 369】
public function work() {
$y = 2021;
$m = 4;
$t = date('t',strtotime($y.'-'.$m.'-1'));
$arr = array();
$weekarray=array(" Japan "," One "," Two "," 3、 ... and "," Four "," 5、 ... and "," 6、 ... and ");
for ($i=1;$i<=$t;$i++) {
$time = strtotime($y.'-'.$m.'-'.$i);
$a['date1'] = date('Y-m-d H:i:s',$time);
$a['date2'] = date('Y-m-d H:i:s',$time+86399);
$a['day'] = $i;
$a['week'] = $weekarray[date('w',$time)];
$arr[] = $a;
}
dump($arr);
}
边栏推荐
- Transport layer protocol -- TCP protocol
- Common tree summary
- 93. Obtenir toutes les adresses IP de l'Intranet
- Research on autojs wechat: the control IP in wechat on different versions of wechat or simulators is different.
- MySQL v Index and algorithm
- The difference between static method locking and non static method locking
- 93. 获得内网的所有IP地址
- 2. factory mode
- Explication du principe d'appariement le plus à gauche de MySQL
- [DDS] ddsi-rtps specification
猜你喜欢
![Data processing and visualization of machine learning [iris data classification | feature attribute comparison]](/img/a3/1d181b9dd5268e13cc276a78862d1f.png)
Data processing and visualization of machine learning [iris data classification | feature attribute comparison]

CentOS 7 installing MySQL 8

Li Yang, a scientific and technological innovator and CIO of the world's top 500 group: the success of digital transformation depends on people. Decision makers should always focus on "firewood"

Remote desktop cannot copy and paste solution

3. Abstract Factory

Oculus quest generation opens Bluetooth connection

Circuitbreaker fuse of resilience4j -- Measurement of circuitbreakermetrics index

HALCON联合C#检测表面缺陷——仿射变换(三)

GNU EFI development environment settings

在线电路仿真以及开源电子硬件设计介绍
随机推荐
HALCON联合C#检测表面缺陷——仿射变换(三)
2021-03-26
conda 安装tensorflow 测试tensorflow
FPGA VGA display based on de2-115 platform
【实验】MySQL主从复制及读写分离
2021-02-22
Remote desktop cannot copy and paste solution
【MySQL】sql_ Model mode
IoT简介
Auto. JS debugging: use the network mode of lightning simulator for debugging
Chromebook system without anti-virus software
tp6调试(trace)
[CEGUI] window environment compilation
2021-09-15
2021-01-13
在一个“去QA化”的项目中,QA能做什么?
在线电路仿真以及开源电子硬件设计介绍
Introduction to IOT
Circuitbreaker fuse of resilience4j - circuitbreakerconfig configuration
reflex