php快速入门教程之for循环

<html>

<head>

<title>for循环示例</title> <meta http-equiv=content-type content=”text/html; charset=gb2312″>

</head>

<body>

<h2 align=center >客户端的信息-for循环</h2>

<hr color=red>

<!–php程序的开始–>

<?

echo”<table border=1>
“;//显示表格的边框

/****************************** 用for循环来读取$globals数组的值 在循环体中显示出客户端的信息 *******************************/

for ($key=reset($globals);$key=key($globals);$key=next($globals)) { $value=pos($globals); echo “<tr><td>$key</td><td>$value</td></tr>
“; }

echo “</table>
“;

?>

<!–php程序的结束–>

</body>

</html>

trackback: aspx?post>http://tb.blog.csdn.net/trackback.aspx?postid=1423202

http://www.bkjia.com/phpjc/508446.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/508446.htmltecharticle<html> <head> <title>for循环示例</title> <meta http-equiv=content-type content=”text/html; charset=gb2312″> </head> <body> <h2 align=center >客户…

Posted in 未分类