On Sun, 21 Mar 2004, Marek Kilimajer wrote:

> Jeff Oien wrote:
> > When I do this:
> > $lastmonth = mktime(0, 0, 0, date("m")-9, date("d"),  date("Y"));
>
> this will not work most of the year, if current month is August or less,
> the month value will be negative.

mktime() can take negative values just fine.

-Rasmus

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

Reply via email to