dams Mon Jan 22 03:55:59 2001 EDT
Modified files:
/phpdoc/fr/language expressions.xml oop.xml variables.xml
control-structures.xml
Log:
updates for stricter parsers.
Index: phpdoc/fr/language/expressions.xml
diff -u phpdoc/fr/language/expressions.xml:1.2 phpdoc/fr/language/expressions.xml:1.3
--- phpdoc/fr/language/expressions.xml:1.2 Fri Jan 12 02:56:51 2001
+++ phpdoc/fr/language/expressions.xml Mon Jan 22 03:55:59 2001
@@ -85,8 +85,8 @@
<simpara>
Un type d'expression très commun est l'expression de comparaison. Ces
expressions
sont évaluées à 0 ou 1, autrement dit
<literal>FALSE</literal> ou <literal>TRUE</literal> (respectivement). PHP supporte
- les opérateurs de comparaison > (plus grand que), => (plus grand ou
égal),
- == (égal à), < (plus petit que), <= (plus petit ou égal).
Ces expressions sont
+ les opérateurs de comparaison > (plus grand que), => (plus grand
+ou égal),
+ == (égal à), < (plus petit que), <= (plus petit ou
+égal). Ces expressions sont
utilisées de manière courante dans les instructions
conditionnelles, comme l'instruction
<literal>if</literal>.
</simpara>
Index: phpdoc/fr/language/oop.xml
diff -u phpdoc/fr/language/oop.xml:1.3 phpdoc/fr/language/oop.xml:1.4
--- phpdoc/fr/language/oop.xml:1.3 Fri Jan 12 02:56:51 2001
+++ phpdoc/fr/language/oop.xml Mon Jan 22 03:55:59 2001
@@ -17,7 +17,7 @@
}
// Suppression de $num articles du type $artnr du panier
function remove_item ($artnr, $num) {
- if ($this->items[$artnr] > $num) {
+ if ($this->items[$artnr] > $num) {
$this->items[$artnr] -= $num;
return <literal>TRUE</literal>;
} else {
Index: phpdoc/fr/language/variables.xml
diff -u phpdoc/fr/language/variables.xml:1.14 phpdoc/fr/language/variables.xml:1.15
--- phpdoc/fr/language/variables.xml:1.14 Sat Jan 20 17:11:24 2001
+++ phpdoc/fr/language/variables.xml Mon Jan 22 03:55:59 2001
@@ -1,4 +1,4 @@
- <chapter id="language.variables">
+ < <chapter id="language.variables">
<title>Les variables</title>
<sect1 id="language.variables.basics">
<title>Essentiel</title>
@@ -684,8 +684,8 @@
static $count = 0;
$count++;
echo $count;
- if ($count < 10) {
- Test ();
+ if ($count < 10) {
+ test();
}
$count--;
}
Index: phpdoc/fr/language/control-structures.xml
diff -u phpdoc/fr/language/control-structures.xml:1.5
phpdoc/fr/language/control-structures.xml:1.6
--- phpdoc/fr/language/control-structures.xml:1.5 Mon Jan 22 03:31:42 2001
+++ phpdoc/fr/language/control-structures.xml Mon Jan 22 03:55:59 2001
@@ -42,7 +42,7 @@
<informalexample>
<programlisting role="php">
<?php
-if ($a > $b)
+if ($a > $b)
print "a est plus grand que b";
?>
</programlisting>
@@ -61,7 +61,7 @@
<informalexample>
<programlisting role="php">
<?php
-if ($a > $b) {
+if ($a > $b) {
print "a est plus grand que b";
$b = $a;
}
@@ -93,7 +93,7 @@
<informalexample>
<programlisting role="php">
<?php
-if ($a > $b) {
+if ($a > $b) {
print "a est plus grand que b";
} else {
print "a est plus petit que b";
@@ -125,7 +125,7 @@
<informalexample>
<programlisting role="php">
<?php
-if ($a > $b) {
+if ($a > $b) {
print "a est plus grand que b";
} elseif ($a == $b) {
print "a est égal à b";
@@ -258,13 +258,13 @@
<?php
/* exemple 1 */
$i = 1;
-while ($i <= 10) {
+while ($i <= 10) {
print $i++; /* La valeur affiche est $i avant l'incrémentation
(post-incrémentation) */
}
/* exemple 2 */
$i = 1;
-while ($i <= 10):
+while ($i <= 10):
print $i;
$i++;
endwhile;
@@ -320,12 +320,12 @@
<programlisting role="php">
<?php
do {
- if ($i < 5) {
+ if ($i < 5) {
print "i n'est pas suffisamment grand";
break;
}
$i *= $factor;
- if ($i < $minimum_limit) {
+ if ($i < $minimum_limit) {
break;
}
print "i est bon";
@@ -390,12 +390,12 @@
<programlisting role="php">
<?php
/* exemple 1 */
-for ($i = 1; $i <= 10; $i++) {
+for ($i = 1; $i <= 10; $i++) {
print $i;
}
/* exemple 2 */
for ($i = 1;;$i++) {
- if ($i > 10) {
+ if ($i > 10) {
break;
}
print $i;
@@ -403,14 +403,14 @@
/* exemple 3 */
$i = 1;
for (;;) {
- if ($i > 10) {
+ if ($i > 10) {
break;
}
print $i;
$i++;
}
/* exemple 4 */
-for ($i = 1; $i <= 10; print $i, $i++) ;
+for ($i = 1; $i <= 10; print $i, $i++) ;
?>
</programlisting>
</informalexample>
@@ -555,7 +555,7 @@
<programlisting role="php">
<?php
$i = 0;
-while ($i < 10) {
+while ($i < 10) {
if ($arr[$i] == "stop") {
break; /* Vous pouvez aussi écrire 'break 1;' ici. */
}
@@ -892,8 +892,8 @@
<informalexample>
<programlisting role="php">
<?php
-$files = array ('first.inc', 'second.inc', 'third.inc');
-for ($i = 0; $i < count($files); $i++) {
+$files = array ('premier.inc', 'second.inc', 'troisieme.inc');
+for ($i = 0; $i < count($files); $i++) {
include $files[$i];
}
?>