Advertisements
Advertisements
Question
The loop exclusively used for arrays is _____.
Options
While
Do While
For
for each
MCQ
Fill in the Blanks
Advertisements
Solution
The loop exclusively used for arrays is for.
shaalaa.com
Looping Structure
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
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;
}
?>Define Looping Structure in PHP.
What is For each loop in PHP?
Write Syntax of For each loop in PHP.
Compare for loop and for each loop.
Discuss in detail about Foreach loop.
Explain the process Do while loop.
