Advertisements
Advertisements
Question
Write Syntax of Do while loop in PHP.
Short/Brief Note
Advertisements
Solution
do
{
code to be executed;
} while (condition is true);
shaalaa.com
Looping Structure
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Loops that iterate for fixed number of times is called ______.
Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?
What will be displayed in a browser when the following PHP code is executed;
<?php
for ($counter = 10; $counter < 10;
$counter = $counter + 5){
echo “Hello”;
}
?>PHP supports which types of looping techniques ______.
What will be the output of the following PHP code?
<?php
for ($x = 1; $x < 10;++$x)
{
print “*\t”;
}
?>Write Syntax of For each loop in PHP.
Explain the use of for each loop in PHP.
Write the features Looping Structure.
Differentiate For each and While loop.
Differentiate While and Do while loops.
