thinkphp getField("xxxxx", true); 得到一个字段所有值组成的的数组

$Channel = D('channel');$channelList = $Channel->order('user_name')->getField("source", true); //不带true只能查到一个值 echo json_encode($channelList); //输出 ["
posted @ 2018-09-14 17:26  奥雷连诺  阅读(1129)  评论(0编辑  收藏  举报