public関数getendmouthtime()
{
$ date = date( "y-m"、time()); ];
$month=$date_arr[1];
$days_in_month = array(31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
もし($month 12)
{
return 0;
}
// その年は閏年ですか?
if ($month == 2)
{
if ($year%400 == 0 OR ($year%4 == 0 AND $year%100 != 0))
{
return $year.'-'.$month.'-29' ;
}
}
return $endstro = strtotime($year.'-'.$month.'-'.$days_in_month[$month - 1]);
}