php $s is written after the if statement
G°
2019-04-27 15:58:04
0
1
1088

<?php

$s=0;

echo '<table width="800" border="1">';

while ( $s<100){

 

  if($s ==0){  

                                                                              using   use using   using   using   using     using ‐ ‐ ‐ echo '<tr>'-- s.'</tr>';

                                                                                                                                                                                        s.'</td>';

$s ;

}echo '</table>';

?>

Why does 0102030405060708090

appear when written like this?

G°

reply all(1)
Libra

The reason for echo '<tr>'.$s.'</tr>'; is because you directly output the value in tr after each $s%==0. The tr output content will be displayed directly above the table. Normally, the <tr> set of <td> tags will be used.



Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!