Making pagination with strlen

I wanted to ask whats the best way and how to do pagination according to strlen
I got a page which holds article, when the article gets too long i want to split it to pages and make a next/prev buttons.
Any ideas?

a small thing to note: i dont want words to be cut in the middle when splitting an article into pages.


An article which is that long and isn’t badly written will be split up into sections with headings, so you can find the first heading past the length and allocate that to the next page.

Really and truthfully page separation is something that the author should be able to choose. Automating it can, and will, cause problems. The article author is a better judge of how their content should be laid out than a PHP script.