tp5 php array_merge合并函数array_column(id值不见)处理办法(创建合成合拼数组)(foreach 记录集)取值方式一:使用array_merge函数$data_1_t = array_merge($data_1_t,array_column($menu_list_1,'title','id'));取值方式二:使用+号$data_1_t = $data_1_t + array_column($menu_list_1,'title','id');
例子: $data_0=[];$data_1=[];$data_2=[];$data_3=[]; $data_1_t=[];$data_2_t=[];$data_3_t=[]; $res = Db::name('menu') ->field('id as value,title as name,pid,controller,position,hide_ba...