Re: Re: strtotime
| From: | Per Jessen | Date: | Sun, 10 Feb 2008 13:35:27 +0000 |
| Subject: | Re: Re: strtotime | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269026@lists.php.net to get a copy of this message | ||
Ron Piggott wrote:
> I see I broke a rule. The variable can't start with a number. Still
> strtotime doesn't work with -18 months How would you handle this?
> Ron
Uh, it works fine here:
php5 -r '$a=strtotime("-18 months"); print strftime("%Y%m%d",$a); ':
20060810
/Per Jessen, Zürich