<?php // 获取当前年份和月份 $currentYear = date(\'Y\'); $currentMonth = date(\'m\');// 构建本月一号的日期字符串 $firstDayOfMonth =