How to get previous year using PHP

前端 未结 9 888
生来不讨喜
生来不讨喜 2021-02-01 01:30

How am I able to get the value of the previous year using PHP. Are there any predefined functions for it?

9条回答
  •  無奈伤痛
    2021-02-01 01:34

    If you want to display the entire date exactly 1 year ago, including the month and year:

     
    

提交回复
热议问题