問題は、同じ ID に基づいて次の 2 つの 2 次元配列
$arr = array( array('id'=>1,'name'=>'zhangsan','sex'=>'n'), array('id'=>2,'name'=>'lisi','sex'=>'v'), array('id'=>3,'name'=>'wangwu','sex'=>'n'), array('id'=>4,'name'=>'zhaoliu','sex'=>'v'), array('id'=>5,'name'=>'xiaoqi','sex'=>'n'));$arr1 = array( array('id'=>3,'age'=>'20'), array('id'=>5,'age'=>'21'), array('id'=>6,'age'=>'30'));
$arr = array( array('id'=>3,'name'=>'wangwu','sex'=>'n','age'=>'20'), array('id'=>5,'name'=>'xiaoqi','sex'=>'n','age'=>'21'));
$tmp[$v['id']] = $v}
print_r($tmp);