Advertisements
Advertisements
प्रश्न
Compare for loop and for each loop.
अंतर स्पष्ट करें
Advertisements
उत्तर
| for loop | for each loop |
| loops through a block of code until the counter reaches a specified number. | loops through a block of code for each element in an array. |
|
|
shaalaa.com
Looping Structure
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
The loop exclusively used for arrays is _____.
Loops that iterate for fixed number of times is called ______.
for ($ x=0; $ x<5; x++)
echo “Hai”
The above loop executes how many no of times?
Define Looping Structure in PHP.
List out Looping Structure in PHP.
Explain the use of for each loop in PHP.
Write the features Looping Structure.
Write the purpose of Looping Structure in PHP.
Explain Looping Structure in PHP.
Explain concepts of for loop with example.
