get value 1 - 2 - 1 - 2 - 1 in for loop php

前端 未结 0 679
感动是毒
感动是毒 2020-12-23 13:44

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++) {
                     


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题