CourseLecture PHP Looping Statements
CourseLecture PHP Looping Statements
do <?php
{ $num = 1;
code to execute; do {
} echo "Number is ".$num."<br />";
while(expression); $num++;
} while ($num <= 10);
echo "Done.";
?>
for Loop
loops through a block of code until the counter reaches a
specified number.
Syntax Php Script Output