volist 嵌套问题显示

浏览:294 发布日期:2016/12/21 分类:求助交流
$father=$office->query('select id,name from toffice');
        //$vlist=$off->query('select id,name,office_id from toff');
        dump($father);
        
        
        foreach($father as  $k=>$v){
            dump($father['id']);
            
              //$father[$k]['name']=$off->where('office_id=1')->select();//此方法可行,没有获取变动的id
            
            $father[$k]['name']=$off->where('office_id=\''.$v['id'].'\'')->select();
            //dump($father[$k]['name']);
      
     }
怎么获取不到$v['id']的值
最佳答案
评论( 相关
后面还有条评论,点击查看>>