当前位置:网站首页>判断当天是当月的第几周
判断当天是当月的第几周
2022-07-06 03:46:00 【dongjinxin0621】
public function get_week_num(){
$time = strtotime('2022-05-01');
$wk_day = date('w', strtotime(date('Y-m-1 00:00:00', $time))) ? : 7; //今天周几
$day = date('d', $time) - (8 - $wk_day); //今天几号
echo $day <= 0 ? 1 : ceil($day / 7) + 1; //计算是第几个星期
die;
}
边栏推荐
- Take you to wechat applet development in 3 minutes
- A brief introduction to symbols and link libraries in C language
- Facebook and other large companies have leaked more than one billion user data, and it is time to pay attention to did
- C language circular statement
- 在 .NET 6 中使用 Startup.cs 更简洁的方法
- 关于非虚函数的假派生
- Yyds dry inventory what is test driven development
- Blue Bridge Cup - day of week
- [slam] lidar camera external parameter calibration (Hong Kong University marslab) does not need a QR code calibration board
- Schnuka: what is visual positioning system and how to position it
猜你喜欢
![[optimization model] Monte Carlo method of optimization calculation](/img/e6/2865806ffbbfaa8cc07ebf625fcde6.jpg)
[optimization model] Monte Carlo method of optimization calculation

Schnuka: visual positioning system working principle of visual positioning system

C#(二十八)之C#鼠标事件、键盘事件

Multi project programming minimalist use case

施努卡:3d视觉检测应用行业 机器视觉3d检测

BUAA计算器(表达式计算-表达式树实现)

2.2 STM32 GPIO操作
![[meisai] meisai thesis reference template](/img/14/b39e1db0b5b35702508068e028ee5a.jpg)
[meisai] meisai thesis reference template

Pytoch foundation - (1) initialization of tensors

Ethernet port &arm & MOS &push-pull open drain &up and down &high and low sides &time domain and frequency domain Fourier
随机推荐
JVM的手术刀式剖析——一文带你窥探JVM的秘密
Remote Sensing Image Super-resolution and Object Detection: Benchmark and State of the Art
自动化测试怎么规范部署?
Brush questions in summer -day3
Pytorch基础——(1)张量(tensor)的初始化
Prime protocol announces cross chain interconnection applications on moonbeam
[Massey] Massey font format and typesetting requirements
关于非虚函数的假派生
After five years of testing in byte, I was ruthlessly dismissed in July, hoping to wake up my brother who was paddling
BUAA calculator (expression calculation - expression tree implementation)
How to standardize the deployment of automated testing?
[optimization model] Monte Carlo method of optimization calculation
Edcircles: a real time circle detector with a false detection control translation
遥感图像超分辨重建综述
Blue Bridge Cup - Castle formula
JS music online playback plug-in vsplayaudio js
在 .NET 6 中使用 Startup.cs 更简洁的方法
Shell pass parameters
Introduction to DeNO
[American competition] mathematical terms