php how to know there are how many days in a month code example Example: php get total amount of days in month $DaysInCurrentMonth = date('t');