CI_Calendar::get_total_days()

get_total_days($month, $year)

Parameters:
  • $month (int) – Month
  • $year (int) – Year
Returns:

Count of days in the specified month

Return type:

int

Total days in a given month:

echo $this->calendar->get_total_days(2, 2012);
// 29

Note

This method is an alias for Date Helper function days_in_month().

doc_CodeIgniter
2016-10-15 16:30:58
Comments
Leave a Comment

Please login to continue.