PHP 取当前月头跟月尾 ? 月头: $monthstart = date('Y.m.d', mktime(0, 0, 0, date('m'), 1, date('Y'))); ? ? 月尾: $monthend = date('Y.m.d', mktime(0, 0, 0, date('m')+1, 0, date('Y'))); ?