为什么80%的码农都做不了架构师?>>>
代码语言:javascript复制// 获得指定日期
// [2018-10-12]
public function GetMonth($date){
$firstday = date("Y-m-01",strtotime($date));
$lastday = date("Y-m-d",strtotime("$firstday 1 month -1 day"));
return ['startime'=>$firstday,'endtime'=>$lastday];
}