Looking for the answer to the double loop operation of for, the effect is like this
beautiful.tomrrow
beautiful.tomrrow 2018-05-04 17:33:43
0
2
1466

微信截图_20180504173334.png

beautiful.tomrrow
beautiful.tomrrow

reply all(2)
攀多多

<?php

//The following is a double-layer for, you should be able to understand it

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

$m=0;

for($i=0; $i <10 ; $i++){

for($y=0;$y&lt ;10;$y++){

echo '<td>'.$m.'</td>';

$m++;

}

if($i%2==0){

echo '<tr bgcolor="red">';

}

else echo '</tr>'; }

echo "</table>";

?>


##

恋上设计
<?php
//循环
for($i='0';$i<'10';$i++){
	for($j='0';$j<'10';$j++){
		echo $j+'10'*$i;
	}
	echo '<br/>';
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template