Advertisements
Advertisements
Question
What will be the output of the following PHP code?
<?php
for ($x = 1; $x < 10;++$x)
{
print “*\t”;
}
?>Options
**********
*********
***********
Infinite loop
MCQ
Advertisements
Solution
*********
shaalaa.com
Looping Structure
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Loops that iterate for fixed number of times is called ______.
What will be the output of the following PHP code?
<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>What is For each loop in PHP?
List out Looping Structure in PHP.
Write Syntax of For loop in PHP.
Explain the use of for each loop in PHP.
Write the features Looping Structure.
Write short notes on Do while Loop.
Differentiate While and Do while loops.
Explain working of loops in array.
