Hi,
I've written my own pagination but one last bit left and need help. I have the array wbelow:
Array
(
[First] => First
[<] => <
[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
[19] => 19
[20] => 20
[21] => 21
[22] => 22
[>] => >
[Last] => Last
)
This is what I want to approach:
First < 1 2 3 4 5 6 7 8 9 10 ... > Last
First < ... 11 12 13 14 15 16 17 18 19 20 ... > Last
First < ... 21 22 > Last
What I mean is, when I am on number 10, it should start printing second line. When I am on number 20 the third line. Vice versa.
Note: I can do without dots if it is easier for you.
Thanks in advance