12345678910
$pirorTime = time();$t = strtotime("$this->expire_date");if($t > $pirorTime){ $pirorTime = $t;}$pirorDate = date("Y-m-d", $pirorTime);$this->expire_date = date("Y-m-d", strtotime("$pirorDate +3 months"));
1
date('Y-m-d',strtotime('0 sunday', time()));