How to calculate number of days in a month of a specified year

To calculate how many days in a particular month of a year PHP provides in build function cal_days_in_month() function returns the number of days in a month for a specified year and calendar.

The cal_days_in_month() function accepts three parameters :

(1) Calendar: The name of the calendar for days calculation.
(2) Month: Specifies number of a particular month for days calculation.
(3) Year: Specifies year of a particular calendar.

Complete Syntax : cal_days_in_month(calendar,month,year);

Continue reading How to calculate number of days in a month of a specified year