Advertisements
Advertisements
प्रश्न
Write Syntax of For each loop in PHP.
टिप्पणी लिखिए
Advertisements
उत्तर
for each ($array as $value)
{
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?
for ($ x=0; $ x<5; x++)
echo “Hai”
The above loop executes how many no of times?
What will be displayed in a browser when the following PHP code is executed:
<?php
for (Scounter = 20; $counter< 10;
$counter++)
{
echo “Welcome to Tamilnadu “;
}
echo “Counter is: Scounter”;
?>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.
Write Syntax of while loop in PHP.
Write Syntax of Do while loop in PHP.
Differentiate For each and While loop.
Differentiate While and Do while loops.
