From 91ab5a49dff3364e48d1abfd008231e14566a538 Mon Sep 17 00:00:00 2001 From: Aidan Lister Date: Sun, 22 Aug 2004 15:36:09 +0000 Subject: [PATCH] Renamed "do..while" to "do-while" as it's more syntatically correct (inline with the java docs - oh no, sun taking over php!!) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167012 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index e821eb59db..83680c1d58 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -308,13 +308,13 @@ endwhile; - <literal>do..while</literal> + <literal>do-while</literal> - do..while loops are very similar to + do-while loops are very similar to while loops, except the truth expression is checked at the end of each iteration instead of in the beginning. The main difference from regular while loops is - that the first iteration of a do..while loop is + that the first iteration of a do-while loop is guaranteed to run (the truth expression is only checked at the end of the iteration), whereas it's may not necessarily run with a regular while loop (the truth expression is @@ -323,7 +323,7 @@ endwhile; execution would end immediately). - There is just one syntax for do..while loops: + There is just one syntax for do-while loops: @@ -346,9 +346,9 @@ do { Advanced C users may be familiar with a different usage of the - do..while loop, to allow stopping execution in + do-while loop, to allow stopping execution in the middle of code blocks, by encapsulating them with - do..while (0), and using the do-while (0), and using the break statement. The following code fragment demonstrates this: @@ -680,7 +680,7 @@ foreach (array(1, 2, 3, 4, 5) as $v) { break ends execution of the current for, foreach, - while, do..while or + while, do-while or switch structure.