パブリック関数time()
{
$today = date("Y-m-d");
$day = $this->getthemonth($today);
if ($day[0] == $day[1]) {
return True;
} else {
return False;
}
}
function getthemonth($ date)
{ firstday = date( 'Y − m − 0 1'、strtotime(firstday = date( 'Ym-01'、strtotime(
f i r s t d a y=d a t e (′そして−m−0 1′、s t r t o t i m e (日付));
nowday = date( ′Y − m − d′、strtotime(nowday = date( 'Ym-d'、strtotime(n o w d a y=d a t e (′そして−m−d′、s t r t o t i m e (日付));
lastday = date( 'Y − m − d'、strtotime( "lastday = date( 'Ym-d'、strtotime("l a s t d a y=d a t e (′そして−m−d′、s t r t o t i m e ("初日+ 1月-1日"));
配列を返す($ firstday、$ nowday、$ lastday);
}