主要用strtotime()这个函数php 获得前一个月的月份date("Y-m-d",strtotime("last month"));php获得给定时间的前一个月时间$record="20101001";date("Ymd",strtotime("last month",strtotime($record)));
本文共 215 字,大约阅读时间需要 1 分钟。
主要用strtotime()这个函数php 获得前一个月的月份date("Y-m-d",strtotime("last month"));php获得给定时间的前一个月时间$record="20101001";date("Ymd",strtotime("last month",strtotime($record)));
转载于:https://www.cnblogs.com/longzhongren/p/4710006.html
转载地址:https://blog.csdn.net/weixin_34008933/article/details/93218947 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!