TP5 is learning to add batches$attr_count = input('post.attr_name/a'); //Add specification attributes in batches<br>
FOREACH ($ Attr_count as $ keys = & gt; $ v) {// batch add specification attribute <br>
<br>
$list[]=[<br>
‘attr_id’=>input('post.attr_id/a')[$keys],<br>
'attr_name'=>input('post.attr_name/a')[$keys],<br>
'attr_value'=>input('post.attr_value/a')[$keys],<br>
'attr_cps'=>input('post.attr_cps/a')[$keys],<br>
‘if_task’=>input('post.if_task/a')[$keys],<br>
‘role_id’=>input('post.role_id/a')[$keys],<br>
‘radios’=>input('post.radios/a')[$keys],<br>
}<br>
to have
<br>