note 26710 deleted from function.date by sniper
| From: | sniper@php.net | Date: | Sat, 11 Oct 2003 16:51:05 +0000 |
| Subject: | note 26710 deleted from function.date by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-58268@lists.php.net to get a copy of this message | ||
Note Submitter: richard dot savaria at wanadoo dot fr
----
A more simpliest way to know the last date in a month. Say that $currentmonth hold the month
you're looking for, so
$timestamp = mktime(0,0,0,$currentmonth);
echo date("t",$timestamp);
should return the last date in the said month.
Ciao