Write Syntax of For loop in PHP.
Advertisements
प्रश्न
Write Syntax of For loop in PHP.
टिप्पणी लिखिए
Advertisements
उत्तर
for (init counter; test counter; increment counter)
{
code to be executed;
}shaalaa.com
Looping Structure
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
Loops that iterate for fixed number of times is called ______.
Which loop evaluates condition expression as Boolean, if it is true, it executes statements and when it is false it will terminate?
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”;
}
?>What will be the output of the following PHP code?
<?php
for ($x = -1; $x < 10;--$x)
{
print $x;
}
?>Define for loop in PHP.
List out Looping Structure in PHP.
Differentiate While and Do while loops.
Explain the process Do while loop.
Explain concepts of for loop with example.
