note 40541 deleted from function.cal-days-in-month by nlopess
| From: | nlopess@php.net | Date: | Fri, 09 Apr 2004 19:27:08 +0000 |
| Subject: | note 40541 deleted from function.cal-days-in-month by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67915@lists.php.net to get a copy of this message | ||
Note Submitter: ms_phitt@yahoo.NOSPAM.com
----
I just used the date function's "t" option, which gives you the total number of days
in a date's month. Range is from "28" to "31".
$lastdate = date("t", mktime(0, 0, 0, $month, $date, $year));