Home > Backend Development > PHP Tutorial > strtotime有关问题

strtotime有关问题

WBOY
Release: 2016-06-13 10:11:17
Original
912 people have browsed it

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

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


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

谢谢!

------解决方案--------------------
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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template