Loops in PHP – for, while, foreach, do-while

## What is Loop in Programming?
In programming to run a repeatable blocks of code until a specific condition is met, we use Loop. Loop is not for only PHP programming things, it’s same in almost all of the programming languages.

So let’s break down it some parts –
1. Run **a repeatable blocks of code**
2. Code Stop executing when
3. **A Stop condition** is met.

### Real-life Example of Loop in Daily Life

1. **Morning Walk** – We do Morning walk until our specific amount of walking

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top