84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Why does the foreach output name appear double (PS has only two fields)
<? for($iCnt2 = 0; $iCnt2 < sqlsrv_num_fields($result); $iCnt2++) { foreach( sqlsrv_field_metadata( $result) as $v ){ echo "<td align=center>". $v['Name']."</td>" ; } } ?>
Using foreach to traverse in a for loop is equivalent to looping the traversal again. You can know the difference between for and foreach in Baidu.
Using foreach to traverse in a for loop is equivalent to looping the traversal again. You can know the difference between for and foreach in Baidu.