$a = [
'id',
'name',
'identityId',
'phone',
'email',
'schoolId'
]; $b = [
'id' => '唯一标识',
'identityId' => '身份证',
'phone' => '手机号',
'email' => '邮箱',
'name' => '姓名',
'schoolId' => '学校'
]; var_dump(array_merge(array_flip($a), $b));
05-11 07:42