Home  |  Linux  | Mysql  | PHP  | XML
From:Kalle Sommer Nielsen Date:Tue Aug 19 17:12:49 2008
Subject:cvs: phpdoc /en/language control-structures.xml
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">


Navigate in group php.doc.cvs at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants