note 38048 deleted from function.getdate by tomsommer

From: Date: Tue, 26 Oct 2004 23:16:29 +0000
Subject: note 38048 deleted from function.getdate by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79150@lists.php.net to get a copy of this message
Note Submitter: ---- In response the previous note about figuring out the last day of the month, yes there is a better way: function daysInMonth($month, $year) { return date("t",mktime(0, 0, 0, $month, 1, $year)); }

« previous php.notes (#79150) next »