5.1 think\model\Collection Object 如何转 Array

浏览:4148 发布日期:2017/12/27 分类:求助交流
model 查询返回的是
think\model\Collection object ( [items:protected] => Array ( [0] => app\common\model\AuthRule object ( [data] => Array ( [id] => 48 [pid] => 40 [path] => 40,48 [level] => 1 [title] => 角色管理 。。。。。。。

怎么转成下面格式

Array ( [0] => Array ( [id] => 40 [pid] => 0 [path] => 40 [level] => 0 [title] => 权限管理
最佳答案
评论( 相关
后面还有条评论,点击查看>>