cvs: phpdoc-fr /language control-structures.xml phpdoc/en/language control-structures.xml
| From: | Damien Seguy | Date: | Wed, 27 Oct 2004 01:49:33 +0000 |
| Subject: | cvs: phpdoc-fr /language control-structures.xml phpdoc/en/language control-structures.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3542@lists.php.net to get a copy of this message | ||
dams Tue Oct 26 21:49:33 2004 EDT
Modified files:
/phpdoc/en/language control-structures.xml
/phpdoc-fr/language control-structures.xml
Log:
fix example and add title
http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.108&r2=1.109&ty=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.108
phpdoc/en/language/control-structures.xml:1.109
--- phpdoc/en/language/control-structures.xml:1.108 Tue Sep 14 04:28:00 2004
+++ phpdoc/en/language/control-structures.xml Tue Oct 26 21:49:33 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.108 $ -->
+<!-- $Revision: 1.109 $ -->
<chapter id="language.control-structures">
<title>Control Structures</title>
@@ -842,7 +842,8 @@
same thing, one using a series of <literal>if</literal> and
<literal>elseif</literal> statements, and the other using the
<literal>switch</literal> statement:
- <informalexample>
+ <example>
+ <title><literal>switch</literal> structure</title>
<programlisting role="php">
<![CDATA[
<?php
@@ -868,10 +869,12 @@
?>
]]>
</programlisting>
- </informalexample>
- <informalexample>
+ </example>
+ <example>
+ <title><literal>switch</literal> structure allows usage of
strings</title>
<programlisting role="php">
<![CDATA[
+<?php
switch ($i) {
case "apple":
echo "i is apple";
@@ -886,7 +889,7 @@
?>
]]>
</programlisting>
- </informalexample>
+ </example>
</para>
<para>
It is important to understand how the <literal>switch</literal>
http://cvs.php.net/diff.php/phpdoc-fr/language/control-structures.xml?r1=1.58&r2=1.59&ty=u
Index: phpdoc-fr/language/control-structures.xml
diff -u phpdoc-fr/language/control-structures.xml:1.58
phpdoc-fr/language/control-structures.xml:1.59
--- phpdoc-fr/language/control-structures.xml:1.58 Tue Sep 28 10:06:43 2004
+++ phpdoc-fr/language/control-structures.xml Tue Oct 26 21:49:33 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.58 $ -->
-<!-- EN-Revision: 1.108 Maintainer: dams Status: ready -->
+<!-- $Revision: 1.59 $ -->
+<!-- EN-Revision: 1.109 Maintainer: dams Status: ready -->
<chapter id="language.control-structures">
<title>Les structures de contrôle</title>
@@ -930,6 +930,7 @@
<title>Instruction <literal>switch</literal> utilisant une chaîne de
caractères</title>
<programlisting role="php">
<![CDATA[
+<?php
switch ($i) {
case "tarte":
echo "i est une tarte";