PHP Learning : Do while loop - Publik Talk

Breaking

An informative website for every one.

Post Top Ad

Post Top Ad

Wednesday, August 2, 2017

PHP Learning : Do while loop

Description:

The do...while loop will always execute the block of code once, it will then check the condition,
and repeat the loop while the specified condition is true.

Sample Code:

<?php
$i=1;
do
{
$i++;
echo "The number is ".$i."<br />";
}
while($i<=5);
?>



Output:


No comments:

Post a Comment

Post Top Ad