PHP Tutorials – Loops
PHP Tutorials – Loops In this PHP Tutorial you will learn about Loops – while loop, do-while loop and the for loop along with syntax and sample PHP loop codes. while loop: A while statement executes a code block until a condition is set. Example: <?php $x = 3; while($x != 0) { echo $x; $x–; } ?> The while block will be executed three times, and the values 3, 2, and 1 will be printed, at then the value of $x will…
Read More