Numeric pagination

can i make my self numeric pagination using self code, ex [ < 1, 2, 3, 4, 5 > ]