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

Reply via email to