当前位置:网站首页>Determine which week of the month the day is
Determine which week of the month the day is
2022-07-06 03:53: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; // What day is today
$day = date('d', $time) - (8 - $wk_day); // What's the date today
echo $day <= 0 ? 1 : ceil($day / 7) + 1; // How many weeks is it
die;
}
边栏推荐
- Image super resolution using deep revolutionary networks (srcnn) interpretation and Implementation
- Align items and align content in flex layout
- Differential GPS RTK thousand search
- Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
- Canvas cut blocks game code
- Cf603e pastoral oddities [CDQ divide and conquer, revocable and search set]
- 判断当天是当月的第几周
- Pandora IOT development board learning (HAL Library) - Experiment 9 PWM output experiment (learning notes)
- Factors affecting user perception
- Cubemx transplantation punctual atom LCD display routine
猜你喜欢
BUAA喜鹊筑巢
JVM的手术刀式剖析——一文带你窥探JVM的秘密
Recommended papers on remote sensing image super-resolution
AcWing 243. A simple integer problem 2 (tree array interval modification interval query)
Schnuka: 3D vision detection application industry machine vision 3D detection
Blue Bridge Cup - day of week
Plus d'un milliard d'utilisateurs de grandes entreprises comme Facebook ont été compromis, il est temps de se concentrer sur le did
Image super resolution using deep revolutionary networks (srcnn) interpretation and Implementation
Factors affecting user perception
Record the process of reverse task manager
随机推荐
Introduction to data types in MySQL
cookie,session,Token 这些你都知道吗?
After five years of testing in byte, I was ruthlessly dismissed in July, hoping to wake up my brother who was paddling
Schnuka: 3D vision detection application industry machine vision 3D detection
有条件地 [JsonIgnore]
简述C语言中的符号和链接库
Quick sort function in C language -- qsort
Canvas cut blocks game code
Basic concepts of LTE user experience
Recommended papers on remote sensing image super-resolution
SAP ALV cell level set color
[Key shake elimination] development of key shake elimination module based on FPGA
Image super resolution using deep revolutionary networks (srcnn) interpretation and Implementation
Blue Bridge Cup - Castle formula
[practical exercise] face location model based on skin color
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
[optimization model] Monte Carlo method of optimization calculation
3.1 detailed explanation of rtthread serial port device (V1)
2.13 weekly report
如何修改表中的字段约束条件(类型,default, null等)