<div class="ccinfo"><?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {?><label <?php echo (isset($selection[$i]['fields'][$j]['tag']) ? 'for="'.$selection[$i]['fields'][$j]['tag'] . '" ' : ''); ?>class="inputLabelPayment"><?php echo $selection[$i]['fields'][$j]['title']; ?></label><?php echo $selection[$i]['fields'][$j]['field']; ?><?php }?></div>
<?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) {?>:循环开始,会循环$selection[$i]['fields']下的所有量
<?php echo (isset($selection[$i]['fields'][$j]['tag']) ? 'for="'.$selection[$i]['fields'][$j]['tag'] . '" ' : '');?>:如果$selection[$i]['fields'][$j]['tag']($j为循环的数字)存在,就输出HTML代码:for="($selection[$i]['fields'][$j]['tag']的值)",否则输出空
<?php echo $selection[$i]['fields'][$j]['title']; ?>:输出$selection[$i]['fields'][$j]['title']
<?php echo$selection[$i]['fields'][$j]['field'];?>:输出$selection[$i]['fields'][$j]['field']
<?php }?>:本次循环结束,继续下次
<?php echo (isset($selection[$i]['fields'][$j]['tag']) ? 'for="'.$selection[$i]['fields'][$j]['tag'] . '" ' : '');?>:如果$selection[$i]['fields'][$j]['tag']($j为循环的数字)存在,就输出HTML代码:for="($selection[$i]['fields'][$j]['tag']的值)",否则输出空
<?php echo $selection[$i]['fields'][$j]['title']; ?>:输出$selection[$i]['fields'][$j]['title']
<?php echo$selection[$i]['fields'][$j]['field'];?>:输出$selection[$i]['fields'][$j]['field']
<?php }?>:本次循环结束,继续下次
温馨提示:答案为网友推荐,仅供参考