我有一个嵌套数组,想要为数组的每个成员创建动态按钮,基本上它包含数据库中的问题信息,并希望为每个问题生成按钮,以便学生可以轻松地在问题之间移动...就像我们有问题一样在线考试系统中的调色板...请帮助
Array
(
[0] => Array
(
[id] => 20
[question] => Which motor is NOT suitable for use as a DC machine?
[ans1] => Squirrel cage motor
[ans2] => Synchronous motor
[ans3] => Series motor
[ans4] => Permanent magnet motor
[ans] => 0
[cat_id] => 8
)