?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?

Previous Page Page 5 of 5 ?

Looping

Like all programming languages, you can use looping structures in PHP.

PHP Code:


echo "";

for ($i = 0; $i < 10; $i++){
??echo "$i looping
\n";
}

echo "";

?>

Web Browser Result:

0 looping
1 looping
2 looping
3 looping
4 looping
5 looping
6 looping
7 looping
8 looping
9 looping

For more information on control structures refer to the manual.

Previous Page Page 5 of 5 ?