get month days in php code example
Example 1: php get total amount of days in month
$DaysInCurrentMonth = date('t');
Example 2: get month days in php
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
$DaysInCurrentMonth = date('t');
echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);