Home  >  Article  >  Backend Development  >  strtotime有关问题

strtotime有关问题

WBOY
WBOYOriginal
2016-06-13 10:11:17851browse

strtotime问题
各位大大
我想得到一个循环,就是根据目前的日期,每循环一次就自减一天,比如

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->for($i=0;$i


这样好像不行啊!
我想自动生成一个当前日期,方便在数据库里根据日期查数据。
或者各位有没有别的什么办法?

谢谢!

------解决方案--------------------
PHP code
/*没什么问题2012-02-282012-02-272012-02-262012-02-252012-02-242012-02-232012-02-222012-02-212012-02-202012-02-19*/for($i=0;$i';}<div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn