tp5.1 php 拼装/组装一维 二维 多维数组 foreach循环$useridarr[]=$v['user_id'];另一种办法:array[{id:1,titl:标题1},{id:2,titl:标题2}]
$rs = Db::name('register') ->alias('r') ->field('r.id,r.user_id') ->join('register_class c','r.class_id = c.id')//模块 ->where('r.deleted',0) ->where('...