且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PHP将多个值插入MySQL表中的单独行

更新时间:2021-09-04 08:28:58

问题的ID可以在后端排列.您可以遍历数组并循环插入问题.

The id for the question can be array at the backend side. You can iterate over the array and insert questions in loop.

另一种方法是使用变量变量在for循环中编写变量名称.

在我看来,数组似乎是一个更干净的代码. :)

Array seems like a cleaner code to me. :)