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
संबंधित प्रश्न
The loop exclusively used for arrays is _____.
Loops that iterate for fixed number of times is called ______.
for ($ x=0; $ x<5; x++)
echo “Hai”
The above loop executes how many no of times?
Consider the following code
<? php
$count=12;
do{
printf(“%d squared=%d<br/>”,
$count, pow($count,2));
} while($count<4);
?>
What will be the output of the code.
List out Looping Structure in PHP.
Explain the use of for each loop in PHP.
Write the purpose of Looping Structure in PHP.
Differentiate While and Do while loops.
Discuss in detail about Foreach loop.
Explain the process Do while loop.
