What do you mean by looping? …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
Posted by Aryan Kanwar 4 years, 3 months ago
- 1 answers
Related Questions
Posted by Kandeepan Jothivel 6 months, 3 weeks ago
- 2 answers
Posted by Syedali Fathima 5 months, 3 weeks ago
- 1 answers
Posted by Hanni Pham 4 months, 1 week ago
- 0 answers
Posted by Prawar Narang 6 months, 2 weeks ago
- 1 answers
Posted by Priya Shukla 5 months, 2 weeks ago
- 1 answers
Posted by Hanni Pham 4 months, 1 week ago
- 1 answers
Posted by Manoj Kumar Manoj Kumar 7 months, 2 weeks ago
- 0 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app
Yogita Ingle 4 years, 3 months ago
A loop is a statement that repeats over and over, while a certain condition is true. Or, to state it another way, it runs until a condition is false. A condition is the value or state you are testing. For example, if you want to repeat the same math program 50,000 times, you can write a loop that runs until it has processed 50,000 times.
Loops in PHP are used to execute the same block of code a specified number of times. PHP supports following four loop types.
for − loops through a block of code a specified number of times.
while − loops through a block of code if and as long as a specified condition is true.
do...while − loops through a block of code once, and then repeats the loop as long as a special condition is true.
foreach − loops through a block of code for each element in an array.
1Thank You