Re: strtotime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ron Piggott wrote:

> 
> I am trying to calculate what was the date 18 months ago.  When I give
> the command:
> 
> $18_months_ago = strtotime("-18 months");
> 
> It comes back with:
> 
> Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE

That's a plain syntactical error, it's not related to strtotime().  Your
variable name of '18_months_ago' is not valid in PHP.



/Per Jessen, Zürich

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux