I have an array of sorted numbers, for example:
Array (
[0] => 33
[1] => 34
[2] => 35
[3] => 36
[4] => 66
[5] => 67
[6] => 68
[7] => 69
[8] => 89
[9] => 90
[10] => 91
[11] => 92
[12] => 93
)
In this case, we have the following ranges of numbers:
1) 33-36
2) 66-69
3) 89-93
I want to create an array for each range:
Array1 ( [0] => 33 [1] => 34 [2] => 35 [3] => 36 )
Array2 ( [0] => 66 [1] => 67 [2] => 68 [3] => 69 )
Array3 ( [0] => 89 [1] => 90 [2] => 91 [3] => 92 [4] => 93 )