PHP cal_days_in_month() Function

The 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 is used to get the number of days of a month for a given year and calendar.The length in days of the selected month in the given calendar

Example -