Define for loop in PHP.
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
संबंधित प्रश्न
What will be displayed in a browser when the following PHP code is executed;
<?php
for ($counter = 10; $counter < 10;
$counter = $counter + 5){
echo “Hello”;
}
?>Define Looping Structure in PHP.
What is For each loop in PHP?
List out Looping Structure in PHP.
Write Syntax of Do while loop in PHP.
Explain the use of for each loop in PHP.
Differentiate For each and While loop.
Write short notes on Do while Loop.
Differentiate While and Do while loops.
Explain concepts of for loop with example.
