i am trying to get value like 1-2-1-2-1-2 from for loop
i tried code like this
$k = 1; for ($i=$k; $i <= $currentPage ; $i++) {