getthemonth 相关的软件列表

首页

php 获取一个月第一天与最后一天的代码

2020-02-16 标签:php,获取,一个月,代码,实现,如下,function,getthemonth,date,firstday,y,m,01,strtotime,lastday,d,month,day,return

实现代码如下:function getthemonth($date) { $firstday = date('Y-m-01', strtotime($date)); $lastday = date('Y-m-d', strtotime("$firstday +1 month -1 day")); r