note 75489 deleted from function.strtotime by derick
| From: | derick@php.net | Date: | Sun, 15 Jul 2007 12:34:43 +0000 |
| Subject: | note 75489 deleted from function.strtotime by derick | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-128543@lists.php.net to get a copy of this message | ||
Note Submitter: Dave
----
I found the same error yesterday in one of my systems. I have a drop down of months going back a
year. Here is how I solved it:
for ($i=1;$i<13;$i++) {
$month = date("m")-$i;
$strdate = mktime(0,0,0,$month,1,date("Y"));
}