0
点赞
收藏
分享

微信扫一扫

thinkphp5 数据库 get thinkphp collection($row)->toArray() 为什么多了*


//如果是get 单条数据
            $row = $this->model->get($ids);
            $row = ($row)->toArray();
            print_r($row);
            die();

collection($row)->toArray()

这个是用于列表,->select();

举报

相关推荐

0 条评论