{php} $groupList = [ 'config'=>'system_user_id,sitename,sitelogo,title,keywords,description,theme,qrcode,wxapp,donateimage,userpage,contactqq,searchtype,autopinyin,baidupush,usersidenav,loadmode,pagemode,cachelifetime,urlsuffix', 'thumb'=>'default_archives_img,default_channel_img,default_block_img,default_page_img,default_special_img', 'wxapp'=>'wxappid,wxappsecret', 'rewrite'=>'domain,rewrite,urlsuffix,moduleurlsuffix', 'audit'=>'isarchivesaudit,iscommentaudit,audittype,nlptype,aip_appid,aip_apikey,aip_secretkey', 'dict'=>'downloadtype,flagtype,autolinks', 'other'=>'archivesratio,score,limitscore,ispaylogin,paytypelist,apikey,archiveseditmode,auditnotice,noticetemplateid,channelallocate,archivesdatalimit,specialdatalimit,pagedatalimit,diyformdatalimit', ]; $group = []; foreach($groupList as $k=>$v){ $item = explode(',', $v); $item = array_flip($item); $group = array_merge($group, array_map(function($value) use($k){return $k;}, $item)); } {/php}