Category Covered

php function that return the number of days in a month

Here is a date function that will give output from 28 to 31 which is normally the days on a months.

t            
Number of days in the given month 28 through 31

<?php echo date("t");?>