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?
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;
}
?>Define Looping Structure in PHP.
Write Syntax of For loop in PHP.
Write Syntax of while loop in PHP.
Differentiate For each and While loop.
Write short notes on Do while Loop.
Discuss in detail about Foreach loop.
