note 17197 rejected from function.mcal-days-in-month by zak

From: Date: Thu, 29 Nov 2001 13:27:50 +0000
Subject: note 17197 rejected from function.mcal-days-in-month by zak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21428@lists.php.net to get a copy of this message
_note when you use mcal_days_in_month() with a none-leap-year and februar it returns 29 days. $daysinmonth=mcal_days_in_month($month, $year); if(!mcal_is_leap_year($year)) { if($month == 02) { $daysinmonth = $daysinmonth - 1; } } this script solve the problem

« previous php.notes (#21428) next »