svn: /phpdoc/en/trunk/language/control-structures/ switch.xml
| From: | Pasindu De Silva | Date: | Sat, 16 May 2015 04:53:41 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/control-structures/ switch.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13304@lists.php.net to get a copy of this message | ||
pasindu Sat, 16 May 2015 04:53:41 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=336788
Log:
Added Change log for switch
RFC multiple default cases
Changed paths:
U phpdoc/en/trunk/language/control-structures/switch.xml
Modified: phpdoc/en/trunk/language/control-structures/switch.xml
===================================================================
--- phpdoc/en/trunk/language/control-structures/switch.xml 2015-05-16 03:01:16 UTC (rev 336787)
+++ phpdoc/en/trunk/language/control-structures/switch.xml 2015-05-16 04:53:41 UTC (rev 336788)
@@ -28,6 +28,33 @@
</para>
</note>
<para>
+ <table>
+ <title>Changelogs</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>7.0.0</entry>
+ <entry>
+ Multiple default cases will raise a <constant>E_COMPILE_ERROR</constant> error.
+ </entry>
+ </row>
+ <row>
+ <entry>TBD</entry>
+ <entry>
+ Multiple default cases will raise a <constant>E_DEPRECATED</constant> error.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
+ <para>
The following two examples are two different ways to write the
same thing, one using a series of <literal>if</literal> and
<literal>elseif</literal> statements, and the other using the