PHP Code:
this.scrollto = 0;
for (temp.i = this.scrollto;i<this.scrollto+5;i++) {
showtext(200+i,........,this.array[i]);
}
this.scrollto = this.scrollto%this.array.size()-5;
Increasing this.scrollto will move the displayed array to the next value.
this.scrollto = this.scrollto%this.array.size()-5; will roll it back to 0 if you increase it to much. From there, you simply add in whatever keyboard or mouse controls to increase this.scrollto.
Alternatively, you can also simply display ALL of the data in a scroll GUI, and manipulate that.