for ($i=1; $i < 13; $i++) { $date = strtotime(date("2015-$i-01")); $firstday = date("Y-m-01",$date); $lastday = date("Y-m-t",$date); echo $firstday.'==='.$lastday.'<br/>';
}
相关文章
- 10-04SQL查询月初与月末时间
- 10-04生成月初月末便于拼接sql
2023-10-04 21:42:40
for ($i=1; $i < 13; $i++) { $date = strtotime(date("2015-$i-01")); $firstday = date("Y-m-01",$date); $lastday = date("Y-m-t",$date); echo $firstday.'==='.$lastday.'<br/>';
}