foreach($revenue_data as $k3=>$v3){ $temps[$v3['_id']['date']]= array( '_id'=>$v3['_id'], 'total_miss'=>$v3['total_miss'], 'total_win'=>$v3['total_win'], 'total_bet'=>$v3['total_bet'], 'total_tips'=>$v3['total_tips'] ); }
foreach($revenue_data as $k3=>$v3){ $temps[$v3['_id']['date']]= array( '_id'=>$v3['_id'], 'total_miss'=>$v3['total_miss'], 'total_win'=>$v3['total_win'], 'total_bet'=>$v3['total_bet'], 'total_tips'=>$v3['total_tips'] ); }