<?php $arr1 = array( 0 => '1周', 1 => '1年', ); $arr2 = array( 0 => array( 'name' => 'admin', ), 1 => array( 'name' => 'admin2', ), ); $result = array(); foreach($arr1 as $k => $v) { if(isset($arr2[$k])) { $result[$k] = $arr2[$k]; $result[$k]['time'] = $v; } } var_dump($result);