note 27968 added to function.cal-days-in-month

From: Date: Fri, 27 Dec 2002 19:34:44 +0000
Subject: note 27968 added to function.cal-days-in-month
Groups: php.notes 
Request: Send a blank email to php-notes+get-41355@lists.php.net to get a copy of this message
Lately, I've been been writing some pretty complex operations for the display of calendar events. I've found to get the count of days in a given month/year, use the date function in addition to cal_days_in_month. $currentdate = date("m-Y"); $test_date = explode("-", "$currentdate"); $days_in_this_month = cal_days_in_month (0, $test_date[0], $test_date[1]); -- http://www.php.net/manual/en/function.cal-days-in-month.php http://master.php.net/manage/user-notes.php?action=edit+27968 http://master.php.net/manage/user-notes.php?action=delete+27968 http://master.php.net/manage/user-notes.php?action=reject+27968

« previous php.notes (#41355) next »