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:
Jacob Hoard
2018-12-29 16:24:19 -05:00
committed by Jonathan Grah
parent d9b1a5f763
commit 80c60de887

View File

@ -1,10 +1,11 @@
---
title: Loop
title: Loops
---
# PHP Loop
When you need to repeat same task for many times, you can use loop instead of keep adding same code over and over again.
In PHP you have the following loop statements :
# PHP Loops
When you need to repeat a task multiple times, you can use a loop instead of adding the same code over and over again.
PHP has the following loop statements :
- for - loop through a block of code with specific number of times.
- 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.