Fixed grammar issues to help readability (#21144)
* Fixed grammar issues to help readability * fix: changed rask for to a task
This commit is contained in:
committed by
Jonathan Grah
parent
d9b1a5f763
commit
80c60de887
@ -1,10 +1,11 @@
|
|||||||
---
|
---
|
||||||
title: Loop
|
title: Loops
|
||||||
---
|
---
|
||||||
|
|
||||||
# PHP Loop
|
# PHP Loops
|
||||||
When you need to repeat same task for many times, you can use loop instead of keep adding same code over and over again.
|
When you need to repeat a task multiple times, you can use a loop instead of adding the same code over and over again.
|
||||||
In PHP you have the following loop statements :
|
PHP has the following loop statements :
|
||||||
|
|
||||||
- for - loop through a block of code with specific number of times.
|
- for - loop through a block of code with specific number of times.
|
||||||
- while - loop through a block of code if condition is true.
|
- while - loop through a block of code if condition is true.
|
||||||
- do...while - loop through a block of code one and continue loop if condition is true.
|
- do...while - loop through a block of code one and continue loop if condition is true.
|
||||||
|
Reference in New Issue
Block a user