<html>
<head>
<title>for loop example</title>
<meta http-equiv=content-type content="text/html; charset=gb2312">
</head>
<body>
<h2 align=center>Client information-FOR loop</h2>
<hr color=red>
<!--Start of PHP program-->
<?
echo"
";//Display the border of the table
/********************************
Use a for loop to read the value of the $GLOBALS array
Display it in the loop body Output client information
*******************************/
for ($key=reset($GLOBALS);$key=key($GLOBALS);$key=next($GLOBALS))
{
$value=pos($GLOBALS);
echo "<tr><td>$key</td><td>$value</td></tr>
";
}
echo "</table>
";
?>
<!--End of PHP program-->
</body>
</html>
Trackback: aspx?PostId=1423202">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 loop example</title> <meta http-equiv=content- type content="text/html; charset=gb2312"> </head> <body> <h2 align=center >Customer...