endforeach in loops?

前端 未结 7 1509
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-01 05:59

I use brackets when using foreach loops. What is endforeach for?

7条回答
  •  既然无缘
    2020-12-01 06:50

    Using foreach: ... endforeach; does not only make things readable, it also makes least load for memory as introduced in PHP docs So for big apps, receiving many users this would be the best solution

提交回复
热议问题