茗越

关注

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

茗越

关注

阅读 60

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

祈澈菇凉 70 0 0

半秋L

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

半秋L 75 0 0

玉新行者

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

玉新行者 135 0 0

王远洋

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

王远洋 53 0 0

Go_Viola

GatewayWorker thinkphp5

Go_Viola 147 0 0

禾木瞎写

THINKPHP5 事务操作

禾木瞎写 166 0 0

elvinyang

thinkphp5上传文件

elvinyang 80 0 0

无聊到学习

thinkphp5 用法总结

无聊到学习 80 0 0

云朵里的佛光

thinkphp5 input坑

云朵里的佛光 89 0 0

凛冬已至夏日未远

ThinkPHP5权限管理

凛冬已至夏日未远 67 0 0

精彩评论(0)

0 0 举报