@@ -86,7 +86,7 @@ string(8) "Teenager"
8686 <note >
8787 <simpara >
8888 When a <literal >match</literal > expression is used as a standalone
89- expression it <emphasis >must</emphasis > be terminated
89+ expression, it <emphasis >must</emphasis > be terminated
9090 by a semicolon <literal >;</literal >.
9191 </simpara >
9292 </note >
@@ -110,7 +110,7 @@ string(8) "Teenager"
110110 </listitem >
111111 <listitem >
112112 <simpara >
113- <literal >match</literal > arms do not fall- through to later cases the way
113+ <literal >match</literal > arms do not fall through to later cases the way
114114 <literal >switch</literal > statements do.
115115 </simpara >
116116 </listitem >
@@ -123,7 +123,7 @@ string(8) "Teenager"
123123 </para >
124124
125125 <para >
126- As <literal >switch</literal > statements, <literal >match</literal >
126+ Like <literal >switch</literal > statements, <literal >match</literal >
127127 expressions are executed match arm by match arm.
128128 In the beginning, no code is executed.
129129 The conditional expressions are only evaluated if all previous conditional
@@ -146,11 +146,11 @@ $result = match ($x) {
146146 </informalexample >
147147 </para >
148148
149- <para >
149+ <simpara >
150150 <literal >match</literal > expression arms may contain multiple expressions
151- separated by a comma. That is a logical OR, and is a short-hand for multiple
151+ separated by a comma. That is a logical OR, and is a shorthand for multiple
152152 match arms with the same right-hand side.
153- </para >
153+ </simpara >
154154 <para >
155155 <informalexample >
156156 <programlisting role =" php" annotations =" non-interactive" >
@@ -186,17 +186,17 @@ $expressionResult = match ($condition) {
186186 </informalexample >
187187 <note >
188188 <simpara >
189- Multiple default patterns will raise a
189+ Multiple default patterns will raise an
190190 <constant >E_FATAL_ERROR</constant > error.
191191 </simpara >
192192 </note >
193193 </para >
194194
195- <para >
195+ <simpara >
196196 A <literal >match</literal > expression must be exhaustive. If the
197- subject expression is not handled by any match arm an
197+ subject expression is not handled by any match arm, an
198198 <classname >UnhandledMatchError</classname > is thrown.
199- </para >
199+ </simpara >
200200
201201 <example >
202202 <title >Example of an unhandled match expression</title >
@@ -240,15 +240,15 @@ object(UnhandledMatchError)#1 (7) {
240240 </example >
241241
242242 <sect2 >
243- <title >Using match expressions to handle non identity checks</title >
243+ <title >Using match expressions to handle non- identity checks</title >
244244 <para >
245245 It is possible to use a <literal >match</literal > expression to handle
246246 non-identity conditional cases by using <code >true</code > as the subject
247247 expression.
248248 </para >
249249
250250 <example >
251- <title >Using a generalized match expressions to branch on integer ranges</title >
251+ <title >Using a generalized match expression to branch on integer ranges</title >
252252 <programlisting role =" php" >
253253<![CDATA[
254254<?php
@@ -273,7 +273,7 @@ string(11) "young adult"
273273 </example >
274274
275275 <example >
276- <title >Using a generalized match expressions to branch on string content</title >
276+ <title >Using a generalized match expression to branch on string content</title >
277277 <programlisting role =" php" >
278278<![CDATA[
279279<?php
0 commit comments