php 获取一个月第一天与最后一天的代码
2018-09-24 21:38
阅读:489
复制代码 代码如下:
function getthemonth($date)
{
$firstday = date(Y-m-01, strtotime($date));
$lastday = date(Y-m-d, strtotime($firstday +1 month -1 day));
return array($firstday, $lastday);
}
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:php 获取一个月第一天与最后一天的代码
文章链接:http://soscw.com/index.php/essay/17641.html
文章标题:php 获取一个月第一天与最后一天的代码
文章链接:http://soscw.com/index.php/essay/17641.html
评论
亲,登录后才可以留言!