A simple instance of PHP while loop control, Phpwhile Loop instance
The while loop is the simplest loop in PHP, and its basic format is:
while (expr) {
Or
while (expr):
This syntax means that as long as the expr expression is true, the statement is executed until expr is false, and statement represents the action or logic to be executed.
<?php $i = 1; while ($i <=) { echo $i;
The example loops out 1 to 10.
The above this PHP while loop control Simple example is the small part to share all the content of everyone, I hope to give you a reference, but also hope that we have a lot of support to help guests home.
http://www.bkjia.com/PHPjc/1133045.html www.bkjia.com true http://www.bkjia.com/PHPjc/1133045.html techarticle A simple instance of PHP while loop control, the Phpwhile loop instance while loop is the simplest loop in PHP with the basic format: while (expr) {statement} or while (expr): statement...