我有以下数组,我想插入所有数据以及从最后插入的id到标记表的id
Array
(
[subjectName] =>
[totalMarks] =>
[marksObtain] =>
[main] => Array
(
[subjectName] => physics
[totalMarks] => 100
[marksObtain] => 85
[1] => Array
(
[subjectName] => english
[totalMarks] => 100
[marksObtain] => 78
)
[2] => Array
(
[subjectName] => biology
[totalMarks] => 100
[marksObtain] => 22
)
)
)