茗越

关注

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

茗越

关注

阅读 61

2023-05-19


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

collection($row)->toArray()

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

相关推荐

祈澈菇凉

Thinkphp5遇到Call to a member function toArray() on null

祈澈菇凉 71 0 0

半秋L

thinkphp5报错 Call to a member function toArray() on array

半秋L 79 0 0

玉新行者

thinkphp3.2和thinkphp5数据库操作进行对比

玉新行者 138 0 0

王远洋

PHP系列 | ThinkPHP5数据库迁移工具 migration

王远洋 57 0 0

Go_Viola

GatewayWorker thinkphp5

Go_Viola 148 0 0

elvinyang

thinkphp5上传文件

elvinyang 81 0 0

无聊到学习

thinkphp5 用法总结

无聊到学习 88 0 0

禾木瞎写

THINKPHP5 事务操作

禾木瞎写 167 0 0

云朵里的佛光

thinkphp5 input坑

云朵里的佛光 90 0 0

吴wuwu

thinkphp5 excel导出

吴wuwu 116 0 0

精彩评论(0)

0 0 举报