From: "Donpro" <[EMAIL PROTECTED]> > I have a piece of code like so: > > $today =- getdate(); > > I am looking for a function that will add a variable number of days and > return a valid date, i.e., the array elements for "mday", "mon" and "year" > are reset as needed. Is this possible?
$tomorrow = getdate(strtotime('+1 day')); $num_days = 5; $any_day = getdate(strtotime("+$num_days day")); ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php