note 42408 deleted from function.getdate by tomsommer

From: Date: Wed, 15 Sep 2004 16:39:38 +0000
Subject: note 42408 deleted from function.getdate by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76763@lists.php.net to get a copy of this message
Note Submitter: garaboncias ---- // next weekday after base_date 0 -> sunday 6 ->saturday function next_weekday($base_date,$day) { $date = getdate($base_date); $day = $day-$date["wday"]; if ($day<0) $day+=7; return $base_date+$day*86400 ; }

« previous php.notes (#76763) next »