note 59747 deleted from function.date by derick

From: Date: Sun, 15 Jan 2006 12:36:07 +0000
Subject: note 59747 deleted from function.date by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101809@lists.php.net to get a copy of this message
Note Submitter: KED ---- Why not just: function next_month($m, $y) {if(++$m > 12) {$m = 1; ++$y;} return array($m, $y); } function previous_month($m, $y) {if(--$m < 1) {$m = 12; --$y;} return array($m, $y); }

« previous php.notes (#101809) next »