Hi,
I am working on a paging function. This is what I have:
$total_pages = 3; // 3 is only an example
foreach ($total_pages as $single_page):
echo 'Page'.$single_site->number.'|';
endforeach;
How can I write the number of pages in array that I can use in my foreach function?
The number of pages is dynamical. I want to be able, to show a value for each page like: Page1, Page2 and so on. Dependening on the number of total pages.