number-of-days-in-a-month
functions

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.