strtotime 中月份是0的巧妙应用,按照上年12月份算

  • strtotime 中月份是0的巧妙应用,按照上年12月份算
        $timestamp = strtotime('2021-00-03');
        echo date('Y-m-d',$timestamp);
        exit;

        2020-12-03
posted @ 2021-09-17 15:52  盘思动  阅读(49)  评论(0编辑  收藏  举报