note 54364 deleted from function.cal-days-in-month by jacques
| From: | jacques@php.net | Date: | Fri, 01 Jul 2005 17:15:23 +0000 |
| Subject: | note 54364 deleted from function.cal-days-in-month by jacques | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-91275@lists.php.net to get a copy of this message | ||
Note Submitter:
----
Correct replacement for cal_days_in_month is this:
<?
$daynum = date("t",strtotime("$year-$month-01"));
?>
Note for editor: date("j") returns current day number, not maximum day number in given
month. Editor, please remove the post with date("j") and add this one with
date("t")