How to do a foreach in PHP only if there's content in the array?

后端 未结 0 609
隐瞒了意图╮
隐瞒了意图╮ 2020-12-16 09:34

I have this piece of code that retrieves an array from the database and I have to cycle through it to create some html elements, but sometimes the array will come empty (whe

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