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
APPEARS IN
संबंधित प्रश्न
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”;
}
?>List out Looping Structure in PHP.
Write Syntax of For loop in PHP.
Write Syntax of while loop in PHP.
Differentiate For each and While loop.
Explain concepts of for loop with example.
Explain working of loops in array.
