cvs: phpdoc /fr/language control-structures.xml expressions.xml oop.xml variables.xml

From: Date: Mon, 22 Jan 2001 11:55:59 +0000
Subject: cvs: phpdoc /fr/language control-structures.xml expressions.xml oop.xml variables.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333821@lists.php.net to get a copy of this message
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&egrave;s commun est l'expression de comparaison. Ces expressions sont &eacute;valu&eacute;es &agrave; 0 ou 1, autrement dit <literal>FALSE</literal> ou <literal>TRUE</literal> (respectivement). PHP supporte - les op&eacute;rateurs de comparaison > (plus grand que), => (plus grand ou &eacute;gal), - == (&eacute;gal &agrave;), < (plus petit que), <= (plus petit ou &eacute;gal). Ces expressions sont + les op&eacute;rateurs de comparaison &gt; (plus grand que), =&gt; (plus grand ou &eacute;gal), + == (&eacute;gal &agrave;), &lt; (plus petit que), &lt;= (plus petit ou &eacute;gal). Ces expressions sont utilis&eacute;es de mani&egrave;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] &gt; $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"> + &lt; <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 &lt; 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"> &lt;?php -if ($a > $b) +if ($a &gt; $b) print "a est plus grand que b"; ?&gt; </programlisting> @@ -61,7 +61,7 @@ <informalexample> <programlisting role="php"> &lt;?php -if ($a > $b) { +if ($a &gt; $b) { print "a est plus grand que b"; $b = $a; } @@ -93,7 +93,7 @@ <informalexample> <programlisting role="php"> &lt;?php -if ($a > $b) { +if ($a &gt; $b) { print "a est plus grand que b"; } else { print "a est plus petit que b"; @@ -125,7 +125,7 @@ <informalexample> <programlisting role="php"> &lt;?php -if ($a > $b) { +if ($a &gt; $b) { print "a est plus grand que b"; } elseif ($a == $b) { print "a est &eacute;gal &agrave; b"; @@ -258,13 +258,13 @@ &lt;?php /* exemple 1 */ $i = 1; -while ($i <= 10) { +while ($i &lt;= 10) { print $i++; /* La valeur affiche est $i avant l'incr&eacute;mentation (post-incr&eacute;mentation) */ } /* exemple 2 */ $i = 1; -while ($i <= 10): +while ($i &lt;= 10): print $i; $i++; endwhile; @@ -320,12 +320,12 @@ <programlisting role="php"> &lt;?php do { - if ($i < 5) { + if ($i &lt; 5) { print "i n'est pas suffisamment grand"; break; } $i *= $factor; - if ($i < $minimum_limit) { + if ($i &lt; $minimum_limit) { break; } print "i est bon"; @@ -390,12 +390,12 @@ <programlisting role="php"> &lt;?php /* exemple 1 */ -for ($i = 1; $i <= 10; $i++) { +for ($i = 1; $i &lt;= 10; $i++) { print $i; } /* exemple 2 */ for ($i = 1;;$i++) { - if ($i > 10) { + if ($i &gt; 10) { break; } print $i; @@ -403,14 +403,14 @@ /* exemple 3 */ $i = 1; for (;;) { - if ($i > 10) { + if ($i &gt; 10) { break; } print $i; $i++; } /* exemple 4 */ -for ($i = 1; $i <= 10; print $i, $i++) ; +for ($i = 1; $i &lt;= 10; print $i, $i++) ; ?&gt; </programlisting> </informalexample> @@ -555,7 +555,7 @@ <programlisting role="php"> &lt;?php $i = 0; -while ($i < 10) { +while ($i &lt; 10) { if ($arr[$i] == "stop") { break; /* Vous pouvez aussi &eacute;crire 'break 1;' ici. */ } @@ -892,8 +892,8 @@ <informalexample> <programlisting role="php"> &lt;?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 &lt; count($files); $i++) { include $files[$i]; } ?&gt;

« previous php.doc (#969333821) next »