Advertisements
Advertisements
प्रश्न
Write the features Looping Structure.
टिप्पणी लिखिए
Advertisements
उत्तर
Looping Structures are useful for writing iteration logics.
It is the most important feature of many programming languages, including PHP.
They are implemented using the following categories.
- for loop
- while loop
- do-while loop
- for each loop
shaalaa.com
Looping Structure
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
Loops that iterate for fixed number of times is called ______.
What will be displayed in a browser when the following PHP code is executed:
<?php
for (Scounter = 20; $counter< 10;
$counter++)
{
echo “Welcome to Tamilnadu “;
}
echo “Counter is: Scounter”;
?>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”;
}
?>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.
List out Looping Structure in PHP.
Write Syntax of For loop in PHP.
Write Syntax of Do while loop in PHP.
Differentiate While and Do while loops.
