0%

虽然安装过无数次了,但是一旦隔段时间不安装,有时候会忘记某些细节。记忆力越来越差了,得做做笔记。

阅读全文 »

测试环境:

1
2
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
阅读全文 »

1
2
3
4
5
6
7
$year = date('Y');
$months = array(1 => 'Jan', 2 => 'Feb', 3 => 'Mar', 4 => 'Apr', 5 => 'May', 6 => 'Jun', 7 => 'Jul', 8 => 'Aug', 9 => 'Sep', 10 => 'Oct', 11 => 'Nov', 12 => 'Dec');
$datearr = array();
foreach ($months as $key => $month) {
array_push($datearr, date('Y-m-d', strtotime("second monday of {$month} {$year}")));
}
var_dump($datearr);