然而,下面的代码在一段时间前是正确工作的,但是,当我现在尝试使用它时,它说这一行有一个错误:
$date1 = new DateTime(array_shift(array_values($array_of_dates)));
错误说:
Strict Standards: Only variables should be passed by reference in /home/...
下面是我的代码:
public function get_user_weeks($user_id,$getdays = NULL,$before_num_days = NULL) {
$weeks_betw