$this_date = strtotime('20151224');//指定日
$month = date('Y-m', $this_date);//指定日の年月
$end_of_month = strtotime('last day of ' . $month);//指定日の月末
echo date('Y年n月j日', $end_of_month);
$this_date = strtotime('20151224');//指定日
$month = date('Y-m', $this_date);//指定日の年月
$end_of_month = strtotime('last day of ' . $month);//指定日の月末
echo date('Y年n月j日', $end_of_month);