cvs: phpdoc /en/language control-structures.xml

From: Date: Tue, 19 Aug 2008 23:12:49 +0000
Subject: cvs: phpdoc /en/language control-structures.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-2057@lists.php.net to get a copy of this message
kalle Tue Aug 19 23:12:49 2008 UTC Modified files: /phpdoc/en/language control-structures.xml Log: Document that a semicolon also may be used after a case, like: case 1; case 2;, ... http://cvs.php.net/viewvc.cgi/phpdoc/en/language/control-structures.xml?r1=1.163&r2=1.164&diff_format=u Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.163 phpdoc/en/language/control-structures.xml:1.164 --- phpdoc/en/language/control-structures.xml:1.163 Wed Jul 2 15:44:30 2008 +++ phpdoc/en/language/control-structures.xml Tue Aug 19 23:12:48 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.163 $ --> +<!-- $Revision: 1.164 $ --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Control Structures</title> @@ -1074,6 +1074,28 @@ </programlisting> </informalexample> </para> + <para> + Its possible to use a semicolon insted of a colon after a case like: + <informalexample> + <programlisting role="php"> +<![CDATA[ +<?php +switch($beer) +{ + case 'tuborg'; + case 'carlsberg'; + case 'heineken'; + echo 'Good choice'; + break; + default; + echo 'Please make a new selection...'; + break; +} +?> +]]> + </programlisting> + </informalexample> + </para> </sect1> <sect1 xml:id="control-structures.declare">

« previous php.doc.cvs (#2057) next »