How do I get the last iteration of foreach if the total is unknown

后端 未结 0 1156
情书的邮戳
情书的邮戳 2021-01-25 01:35

I want to echo a variable at the last iteration of a foreach loop, only counting when a conditional is met inside a loop.

Here is what I have tried:

$var =         


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