Advertisements
Advertisements
प्रश्न
Define for loop in PHP.
व्याख्या
Advertisements
उत्तर
For loop is an important functional looping system which is used for iteration logics when the programmer know in advance how many times the loop should run.
Syntax:
for (init counter; test counter; increment counter)
{
code to be executed;
}shaalaa.com
Looping Structure
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
APPEARS IN
संबंधित प्रश्न
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.
Write Syntax of For loop in PHP.
Compare for loop and for each loop.
Explain the use of for each loop in PHP.
Write the purpose of Looping Structure in PHP.
Differentiate For each and While loop.
Write short notes on Do while Loop.
Discuss in detail about Foreach loop.
Explain the process Do while loop.
