Advertisements
Advertisements
प्रश्न
Write the purpose of Looping Structure in PHP.
टिप्पणी लिखिए
Advertisements
उत्तर
- In programming it is often necessary to repeat the same block of code a given number of times, or until a certain condition is met.
- This can be accomplished using looping statements.
shaalaa.com
Looping Structure
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
The loop exclusively used for arrays is _____.
Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?
for ($ x=0; $ x<5; x++)
echo “Hai”
The above loop executes how many no of times?
What will be the output of the following PHP code?
<?php
for ($x = 1; $x < 10;++$x)
{
print “*\t”;
}
?>What will be the output of the following PHP code?
<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>Write Syntax of while loop in PHP.
Write the features Looping Structure.
Differentiate While and Do while loops.
Explain the process Do while loop.
Explain working of loops in array.
