Timestamp strtotime date function usage

Get the timestamp of the 1st of the month

<?php
// 获取当前年份和月份
$currentYear = date('Y');
$currentMonth = date('m');

// 构建本月一号的日期字符串
$firstDayOfMonth = 

Guess you like

Origin blog.csdn.net/hyrylt/article/details/130259786