我有这个
array
(
[0] => 1976,
[1] => 1977,
[2] => 1978,
[3] => 1979,
[4] => 1980,
[5] => 1981,
[6] => 1982,
[7] => 1983,
[8] => 1990,
[9] => 1991,
[10] => 1993,
[11] => 1994,
[12] => 1995
)
我想找到间隙之间的间隔,所以它看起来像这样:
$tmp[1]= [[0] => 1976, [1] => 1983]
$tmp[1]= [[0] => 1990, [1] => 1991]
$tmp[1]= [[0] => 1993, [1] => 1995]
最终我将使用与最大数量列表相同的方法安迪想法?