PHP 获取最近一年的月份


$z = date('Y-m');
$a = date('Y-m', strtotime('-11 months'));
$begin = new DateTime($a);
$end = new DateTime($z);
$end = $end->modify('+1 month');
$interval = new DateInterval('P1M');
$daterange = new DatePeriod($begin, $interval ,$end);

foreach($daterange as $date){
      echo $date->format("Y-m") . "<br />";
}

在linux服务器上搭建SVN服务器

SQLSTATE[IMSSP]: This extension requires the ODBC Driver 11 for SQL Server to communicate with SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712

评 论
更换验证码