ThinkPHP5

select對象轉數組php

修改 config/database.php數組

'resultset_type' => '\think\Collection',對象

或者使用toArray();io

相關文章
相關標籤/搜索