|
|
@@ -1296,61 +1296,10 @@ class Common
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // return $newarray;
|
|
|
+ return [];
|
|
|
}
|
|
|
|
|
|
|
|
|
- static function filter_by_value_1111 ($array,$match_id){
|
|
|
- $data_json= json_encode($array);
|
|
|
- $data_arr = json_decode($data_json,true);
|
|
|
-
|
|
|
-
|
|
|
- /*
|
|
|
- $newarray = [
|
|
|
- 'match_id'=> 1,
|
|
|
- 'home_score'=> 1,
|
|
|
- 'guest_score'=> 2,
|
|
|
- 'a_time'=> 0,
|
|
|
- 'home_rate'=> 0,
|
|
|
- 'guest_rate'=> 0,
|
|
|
- 'match_process'=> 0,
|
|
|
- 'first_score'=> '',
|
|
|
- 'last_score'=> '',
|
|
|
- 'match_score'=> '',
|
|
|
- 'match_winer'=>''
|
|
|
- ];
|
|
|
-
|
|
|
- return $newarray;
|
|
|
-
|
|
|
- */
|
|
|
-
|
|
|
- $newarray = [];
|
|
|
-
|
|
|
- if(is_array($data_arr) && count($data_arr)>0)
|
|
|
- {
|
|
|
- foreach($data_arr as $k=>$v){
|
|
|
- if($v['match_id'] == $match_id){
|
|
|
- $newarray = $v;
|
|
|
- // $newarray[$k] = [
|
|
|
- // 'match_id'=> $v->match_id,
|
|
|
- // 'home_score'=> $v->home_score,
|
|
|
- // 'guest_score'=> $v->guest_score,
|
|
|
- // 'a_time'=> $v->a_time,
|
|
|
- // 'home_rate'=> $v->home_rate,
|
|
|
- // 'guest_rate'=> $v->guest_rate,
|
|
|
- // 'match_process'=> $v->match_process,
|
|
|
- // 'first_score'=> $v->first_score,
|
|
|
- // 'last_score'=> $v->last_score,
|
|
|
- // 'match_score'=> $v->match_score,
|
|
|
- // 'match_winer'=> $v->match_winer
|
|
|
- // ];
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return $$newarray;
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
?>
|