Cal_days_in_month () Function
The Cal_days_in_month () function is used to find the number of days in a given month, based on the calendar, month, and year.
Syntax : cal_days_in_month ( int calendar, int month, int year)
Example :
<?php
$output = cal_days_in_month(CAL_GREGORIAN, 3, 2000) ;
echo “There were $output days in March 2000″;
echo “<br>”;
$output = cal_days_in_month(CAL_GREGORIAN, 2, 2004) ;
echo “There were $output days in Feb 2004″;
?>
