diff --git a/language/control-structures.xml b/language/control-structures.xml index 2ba21145b4..49b18f900e 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -782,11 +782,11 @@ switch ($i) { - Here, if $i equals to 0, PHP would execute all of the print - statements! If $i equals to 1, PHP would execute the last two - print statements, and only if $i equals to 2, you'd get the - 'expected' behavior and only 'i equals 2' would be displayed. So, - it's important not to forget break statements + Here, if $i is equal to 0, PHP would execute all of the print + statements! If $i is equal to 1, PHP would execute the last two + print statements. You would get the expected behavior ('i equals 2' + would be displayed) only if $i is equal to 2. Thus, + it is important not to forget break statements (even though you may want to avoid supplying them on purpose under certain circumstances). @@ -901,8 +901,8 @@ declare (directive) statement The statement part of the - declare block will be executed - how - it is executed and what side-effects occur during execution + declare block will be executed -- how + it is executed and what side effects occur during execution may depend on the directive set in the directive block. @@ -917,7 +917,7 @@ declare (directive) statement directive section. - The event(s) that occurs on each tick is specified using the + The event(s) that occur on each tick are specified using the register_tick_function. See the example below for more details. Note that more than one event can occur for each tick.