while(){}的高级用法_PHP教程
时间:2021-07-01 10:21:17
帮助过:65人阅读
/*$ip="127.0.0.1";
if($_SERVER["REMOTE_ADDR"]==$ip){
header("location:xxx.php");
}else{
header("location:yyy.php");
}
function limitIp($ip){
if($_SERVER[REMOTE_ADDR]==$ip){
header("location:XXx.php");
}else{
header("location:YYY.php");
}
}*/
/*
echo "
";
echo "学生成绩
";
$i=0;
$j=0;
while($i<1000){
if($i%10==0){
if($j++%2==0){
$bgc="#cccccc";
}else{
$bgc="aaffaa";
}
//echo "";
echo "
";
}
echo "$i | ";
if(++$i%10==0){
echo "
";
}
}
echo "";
*/
echo "";
echo "学生成绩
";
$i=0;
$k=0;
while($i<100){
if($i%2==0){
$bgc="#cccccc";
}else{
$bgc="#aaffaa";
}
echo "";
$j=0;
while($j<10){
echo "$k | ";
$j++;
$k++;
}
echo "
";
$i++;
}
echo "
";
?>
http://www.bkjia.com/PHPjc/486549.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/486549.htmlTechArticle?php /*$ip=127.0.0.1; if($_SERVER[REMOTE_ADDR]==$ip){ header(location:xxx.php); }else{ header(location:yyy.php); } function limitIp($ip){ if($_SERVER[REMOTE_ADDR]==$ip){ header(loc...
人气教程排行