When the permalinks are set, the url could be something like this...
/about/page/5/
I'm writing a plugin and I need to get the page number, as a string (or alike).
I could use server variables and explode it but if there are a change in the permalink structure I would get an error. Is there a way to get this page number?