Given a time, how can I find the time one month ago

后端 未结 7 1520
梦如初夏
梦如初夏 2021-01-13 08:16

Given a time, how can I find the time one month ago.

7条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-13 08:43

    strtotime( '-1 month', $timestamp );
    

    http://php.net/manual/en/function.strtotime.php

提交回复
热议问题