Loop through dates with PHP

后端 未结 4 2052
粉色の甜心
粉色の甜心 2021-02-15 11:53

I am trying to loop through dates with PHP. Currently my code gets stuck in a loop repeating 110307. I need the date format to be in yymmdd. Here is what I was trying to use:

4条回答
  •  春和景丽
    2021-02-15 12:19

    Try using a unix timestamp and adding 86400 each time. That's gotta be faster than calling strtotime(). You can lookup timestamp conversions online.

    ';  
        }
    ?>
    

提交回复
热议问题