Closed Sett closed 9 years ago
Why don't you use "cal_days_in_month" for getting number of days in a month? It is has the same format:
cal_days_in_month(CAL_GREGORIAN, 4, 2010);
Cool, did not know of this function!
Unfortunately it requires a compile flag, which means that it isn't always available in PHP: http://php.net/manual/calendar.installation.php
Yes, you are wright.
Why don't you use "cal_days_in_month" for getting number of days in a month? It is has the same format:
cal_days_in_month(CAL_GREGORIAN, 4, 2010);