I have been trying to figure this out until my brain imploded. Im trying to sort an array.
The first 11 entries has to be removed, then the next 7 entries has to be placed in an new array and then the next 7 entries and so on. Until there is no more entries.
Short example:
Turn this:
Array (
[0] => 0
[1] => 1
[2] => 2
[3] => 3
[4] => 4
[5] => 5
[6] => 6
[7] => 7
[8] => 8
[9] => 9
[10] => 10
[11] => 11
[12] => 12
[13] => 13
[14] => 14
[15] => 15
[16] => 16
[17] => 17
[18] => 18
)
Into this:
Array (
[0] => Array (
[0] => 11
[1] => 12
[2] => 13
[3] => 14
[4] => 15
[5] => 16
[6] => 17
)
)