php get total days in a specific month month code example Example: php get total amount of days in month $DaysInCurrentMonth = date('t');