From 80c60de887d749c775a09270574d7d3f079c4d6a Mon Sep 17 00:00:00 2001 From: Jacob Hoard <36744177+jhoard08@users.noreply.github.com> Date: Sat, 29 Dec 2018 16:24:19 -0500 Subject: [PATCH] Fixed grammar issues to help readability (#21144) * Fixed grammar issues to help readability * fix: changed rask for to a task --- guide/english/php/loop/index.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/guide/english/php/loop/index.md b/guide/english/php/loop/index.md index 84a8e7630e..aea2c067e7 100644 --- a/guide/english/php/loop/index.md +++ b/guide/english/php/loop/index.md @@ -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.