memo

memo dayo.

2010-09-06から1日間の記事一覧

対象月の最終日を取得する

php

function last_dom ($year, $month) { return = date('d', mktime(0, 0, 0, ($month) % 12 + 1, 0, ($month + 1) > 12 ? ($month) % 12 + 1 : $year)); }