<?php
$array1=array("first"=>("a"),"second"=>"b","third"=>"c","fourth"=>"d","fifth"=>"e");
$array2=array("first"=>("1"),"second"=>"2","third"=>"3","fourth"=>"4","fifth"=>"5");
$array3=array("first"=>"dff","second"=>"fdf","third"=>"fdf","fourth"=>"fsd","fifth"=>"ddd");
$result = array_merge_recursive($array2, $array1, $array3);
print_r($result);
?>
输出为:
Array 
( [first] => Array ( 
               [0] => 1 [1] => a [2] => dff ) 
  [second] => Array ( 
               [0] => 2 [1] => b [2] => fdf ) 
  [third] => Array ( 
               [0] => 3 [1] => c [2] => fdf ) 
  [fourth] => Array ( 
               [0] => 4 [1] => d [2] => fsd )
  [fifth] => Array (
               [0] => 5 [1] => e [2] => ddd )