如何求这个数组的最大值。。。最小值,
Array ( [0] => Array ( [0] => 1377045490 ) [1] => Array ( [0] => 1377045490 ) [2] => Array ( [0] => 1377045490 ) [3] => Array ( [0] => 1377046853 ) [4] => Array ( [0] => 1377046853 ) [5] => Array ( [0] => 1377046853 ) [6] => Array ( [0] => 1377046853 ) [7] => Array ( [0] => 1377046853 ) [8] => Array ( [0] => 1377046853 ) [9] => Array ( [0] => 1377046853 ) [10] => Array ( [0] => 1377046853 ) [11] => Array ( [0] => 1377046853 ) [12] => Array ( [0] => 1377046853 ) [13] => Array ( [0] => 1377046853 ) [14] => Array ( [0] => 1377046853 ) [15] => Array ( [0] => 1376960477 ) [16] => Array ( [0] => 1376960477 ) [17] => Array ( [0] => 1376960477 ) [18] => Array ( [0] => 1376960477 ) [19] => Array ( [0] => 1376960477 ) [20] => Array ( [0] => 1376960477 ) [21] => Array ( [0] => 1376960477 ) [22] => Array ( [0] => 1376960477 ) [23] => Array ( [0] => 1376960477 ) [24] => Array ( [0] => 1376960477 ) [25] => Array ( [0] => 1376960477 ) [26] => Array ( [0] => 1376960477 ) [27] => Array ( [0] => 1376960477 ) [28] => Array ( [0] => 1376960477 ) [29] => Array ( [0] => 1376960477 ) [30] => Array ( [0] => 1376960477 ) [31] => Array ( [0] => 1376881355 ) [32] => Array ( [0] => 1376881355 ) [33] => Array ( [0] => 1376881355 ) [34] => Array ( [0] => 1376874046 ) [35] => Array ( [0] => 1376874046 ) [36] => Array ( [0] => 1376874046 ) [37] => Array ( [0] => 1376874046 ) [38] => Array ( [0] => 1376874046 ) [39] => Array ( [0] => 1376874046 ) )
[解决办法]
$ar = Array (
0 => Array ( 0 => 1377045490 ),
1 => Array ( 0 => 1377045490 ),
2 => Array ( 0 => 1377045490 ),
3 => Array ( 0 => 1377046853 ),
4 => Array ( 0 => 1377046853 ),
5 => Array ( 0 => 1377046853 ),
6 => Array ( 0 => 1377046853 ),
7 => Array ( 0 => 1377046853 ),
8 => Array ( 0 => 1377046853 ),
9 => Array ( 0 => 1377046853 ),
10 => Array ( 0 => 1377046853 ),
11 => Array ( 0 => 1377046853 ),
12 => Array ( 0 => 1377046853 ),
13 => Array ( 0 => 1377046853 ),
14 => Array ( 0 => 1377046853 ),
15 => Array ( 0 => 1376960477 ),
16 => Array ( 0 => 1376960477 ),
17 => Array ( 0 => 1376960477 ),
18 => Array ( 0 => 1376960477 ),
19 => Array ( 0 => 1376960477 ),
20 => Array ( 0 => 1376960477 ),
21 => Array ( 0 => 1376960477 ),
22 => Array ( 0 => 1376960477 ),
23 => Array ( 0 => 1376960477 ),
24 => Array ( 0 => 1376960477 ),
25 => Array ( 0 => 1376960477 ),
26 => Array ( 0 => 1376960477 ),
27 => Array ( 0 => 1376960477 ),
28 => Array ( 0 => 1376960477 ),
29 => Array ( 0 => 1376960477 ),
30 => Array ( 0 => 1376960477 ),
31 => Array ( 0 => 1376881355 ),
32 => Array ( 0 => 1376881355 ),
33 => Array ( 0 => 1376881355 ),
34 => Array ( 0 => 1376874046 ),
35 => Array ( 0 => 1376874046 ),
36 => Array ( 0 => 1376874046 ),
37 => Array ( 0 => 1376874046 ),
38 => Array ( 0 => 1376874046 ),
39 => Array ( 0 => 1376874046 ),
);
$t = array_map('current', $ar);
echo max($t); //1377046853
echo min($t); //1376874046
$t = call_user_func_array('array_merge', $ar);当第二维元素多于1时
echo max($t); //1377046853
echo min($t); //1376874046