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);
}
0
0
相关文章
如何在 macOS M1 上为 Apache 正确启用 PHP 模块
如何在 PHP for 循环中正确累加变量值(如 $prog_total)
如何在 PHP 中正确判断多个输入字段是否为空并据此生成数据库插入值
PHP 中正确验证 XML 输入为整数的完整指南
如何在 macOS M1 上为 Apache 启用 PHP(解决模块签名错误)
相关标签:
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门AI工具
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号