TP 6.报错 Indirect modification of overloaded element of think\Collection has no effect

在执行 select()查询后进行foreach遍历会出现 Indirect modification of overloaded element of think\Collection has no effect 这个报错 是因为 select()查询出来的是 对象 需要把select()查询对象转成数组 toArray()一下 报错: 报错代码: 正确代码:
相关文章
相关标签/搜索