标签:show cti function code turn echo color ++ pre
1 function showMonthRange($start, $end) 2 { 3 $end = date(‘Ym‘, strtotime($end)); // 转换为月 4 $range = []; 5 $i = 0; 6 do { 7 $month = date(‘Ym‘, strtotime($start . ‘ + ‘ . $i . ‘ month‘)); 8 //echo $i . ‘:‘ . $month . ‘<br>‘; 9 $range[] = $month; 10 $i++; 11 } while ($month < $end); 12 13 return $range; 14 } 15
标签:show cti function code turn echo color ++ pre
原文地址:http://www.cnblogs.com/cloudshadow/p/php_date_month_range.html