I want get the keys of continuous values of an array. For example:
how to change this array:
array(
2 => 11,
3 => 11,
4 => 11,
6 => 12,
7 => 13,
8 => 13,
10 => 11,
11 => 11,
12 => 14
)
to this one:
array(
array(2, 3, 4),
array(6),
array(7, 8),
array(10, 11),
array(12)
)
Thx in advance!