时间:2021-07-01 10:21:17 帮助过:14人阅读

<?php
$i = 0;
while (true){
echo "{$i}<br>";
$i++;
if ($i > 10){
break;
}
}
/** ***********************分割线************************* */
echo "<table border='1' align='center' width='100'>";
echo "<caption><h3>iwanghang</h3></caption>";
$i = 0;
while ($i < 10){
echo "<tr><td>{$i}</td></tr>";
$i++;
}
echo "</table>";
/** ***********************分割线************************* */
echo "<table border='1' align='center' width='100'>";
echo "<caption><h3>iwanghang</h3></caption>";
$i = 0;
while ($i < 100){
if ($i % 10 == 0){
echo "<tr>";
}
echo "<td>{$i}</td>";
$i++;
if ($i % 10 == 0){
echo "</tr>";
}
}
echo "</table>";
/** ***********************分割线************************* */
$i = 0;
while ($i < 10){
echo "#";
$i++;
}
echo "<br>";
/** ***********************分割线************************* */
echo "<table border='1' align='center' width='100'>";
echo "<caption><h3>whlie练习</h3></caption>";
$i = 0;
while ($i <10){
$j = 0;
if ($i%2==0){
echo '<tr bgcolor="#999999">';
}else{
echo '<tr>';
}
while ($j < 10){
echo "<td>$j</td>";
$j++;
}
$i++;
}
echo "</table>"; 以上就是Android程序员学PHP开发(14)-whlie练习-PhpStorm的内容,更多相关内容请关注PHP中文网(www.gxlcms.com)!