Get the number of days in a month for a specified year and calendar in PHP
Description
The following code shows how to get the number of days in a month for a specified year and calendar.
Example
/*from w w w .j av a 2 s .c o m*/
<?php
$d=cal_days_in_month(CAL_GREGORIAN,10,2014);
echo "There was $d days in October 2005";
?>
The code above generates the following result.