note 26704 added to function.cal-days-in-month
| From: | public at schnappmatik dot de | Date: | Sat, 09 Nov 2002 18:42:12 +0000 |
| Subject: | note 26704 added to function.cal-days-in-month | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39232@lists.php.net to get a copy of this message | ||
this one works fine for me, without calendar-module compiled in:
function get_days_in_month($year,$month)
{
$date=getdate(mktime(0,0,0,$month+1,0,$year));
return $date["mday"];
}
--
http://www.php.net/manual/en/function.cal-days-in-month.php
http://master.php.net/manage/user-notes.php?action=edit+26704
http://master.php.net/manage/user-notes.php?action=delete+26704
http://master.php.net/manage/user-notes.php?action=reject+26704