$BeginDate = date(‘Y-m-01‘, strtotime(date("Y-m-d")));
echo $BeginDate;
echo "<br/>";
echo date(‘Y-m-d‘, strtotime("$BeginDate +1 month -1 day"));
echo "<br/>";
exit;
标签:gpo day str mon 第一天 date rto pos pre
$BeginDate = date(‘Y-m-01‘, strtotime(date("Y-m-d")));
echo $BeginDate;
echo "<br/>";
echo date(‘Y-m-d‘, strtotime("$BeginDate +1 month -1 day"));
echo "<br/>";
exit;
标签:gpo day str mon 第一天 date rto pos pre
原文地址:https://www.cnblogs.com/pansidong/p/8665617.html