note 44819 deleted from function.strtotime by derick

From: Date: Sun, 14 Aug 2005 11:49:04 +0000
Subject: note 44819 deleted from function.strtotime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93589@lists.php.net to get a copy of this message
Note Submitter: Faust ---- i found one Mistake. This is right: function getMonday ($kwName) { $thisWo = date("W"); $diffWo = $kwName-$thisWo; if (date("w") == 1) { $monday = strtotime("this Monday"); } else { $monday = strtotime("last Monday"); } $plus_week = "+".$diffWo." week"; $nextMon = date("d.m.y", strtotime($plus_week, $monday)); echo $nextMon; }

« previous php.notes (#93589) next »