哈士奇WWW
演示链接。您只需要将其添加到父数组中,如下所示,$arr1 = [1 => 19, 2 => 2, 3 => 2018];$arr2 = [1 => 19, 2 => 1, 3 => 2017];$arr3 = [1 => 18, 2 => 2, 3 => 2016];$mynewArray = [$arr1,$arr2,$arr3];print_r($mynewArray);输出Array( [0] => Array ( [1] => 19 [2] => 2 [3] => 2018 ) [1] => Array ( [1] => 19 [2] => 1 [3] => 2017 ) [2] => Array ( [1] => 18 [2] => 2 [3] => 2016 ))