php上个月时间范围 runphp 2016-05-26 15:08:48 $day = date('d')-1; echo strtotime(date("Y-m-d", strtotime('-1 month '.-$day.' day'))); echo "\n"; echo strtotime(date("Y-m-d", strtotime(-$day.' day')));