本帖最后由 LiveAsaMonster 于 2011-07-06 16:30:03 编辑

解决方案 »

  1.   


    foreach($data as $key=>$value) {
        if(isset($list[$value['card']])) {
            $data[$key] = array_merge($value, $list[$value['card']]);
        }
    }
    //下次把能跑的数据发出来,不要发这种,不然测试也要自己写数据
      

  2.   

    $arrResult = array();
    foreach($data as $k=>$v){
        $v['one'] = $list[$v['card']]['one'];
        $v['two'] = $list[$v['card']]['two'];
        $v['three'] = $list[$v['card']]['three'];
        $arrResult[] = $v;
    }