Home >Backend Development >PHP Tutorial >PHP quick start tutorial - for loop_PHP tutorial

PHP quick start tutorial - for loop_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 17:34:481006browse

<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

www.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...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn