Hard to tell without seeing the PHP script.
When you print out your array, line by line, you'll have a counter
variable that stops the listing and displays a link to continue on.
So, you'll have a subroutine (function) in your PHP script that handles
just the printout based on the line count.