php 数组合并方法
$new = array(); if ($relateddepartmentsnew) { foreach ($relateddepartmentsnew as $relatK=>$relatV) { $new[$relatK]['relateddepartments'] = $relatV; } } if ($zzfgnew) { foreach ($zzfgnew as $zzfgK=>$zzfgV) { $new[$zzfgK]['zzfg'] = $zzfgV; } }