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

PHP quick start tutorial - for loop_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:34:48
Original
995 people have browsed it

<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...
source:php.cn
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template