PHP -Building Blocks If –else statements if…else statement – executes set of codes if a condition is true and another code if the condition
Tag: Loops in php
A do-while loop
The do…while loop example: <?php $i = 1; Do { $i++; echo $i . “<br>”; } while($i <= 3); ?> Output: 2 3 4