cvs: phpdoc /fr/language control-structures.xml operators.xml types.xml variables.xml

From: Date: Tue, 23 Jan 2001 10:35:47 +0000
Subject: cvs: phpdoc /fr/language control-structures.xml operators.xml types.xml variables.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333868@lists.php.net to get a copy of this message
dams Tue Jan 23 02:35:47 2001 EDT Modified files: /phpdoc/fr/language operators.xml types.xml variables.xml control-structures.xml Log: => to =&gt; Updating translation Index: phpdoc/fr/language/operators.xml diff -u phpdoc/fr/language/operators.xml:1.7 phpdoc/fr/language/operators.xml:1.8 --- phpdoc/fr/language/operators.xml:1.7 Fri Jan 19 00:51:16 2001 +++ phpdoc/fr/language/operators.xml Tue Jan 23 02:35:46 2001 @@ -307,7 +307,12 @@ </programlisting> </informalexample> </para> - <para> + <note> + <para> + Cet opérateur est désactivé lorsque le <link linkend="ini.safe-mode">safe mode</link> + est activé. + </para> + </note> <para> Voir aussi <function>system</function>, <function>passthru</function>, <function>exec</function>, <function>popen</function>, et Index: phpdoc/fr/language/types.xml diff -u phpdoc/fr/language/types.xml:1.6 phpdoc/fr/language/types.xml:1.7 --- phpdoc/fr/language/types.xml:1.6 Fri Jan 12 02:56:51 2001 +++ phpdoc/fr/language/types.xml Tue Jan 23 02:35:46 2001 @@ -176,7 +176,10 @@ Vous pouvez utiliser le caract&egrave;re d'&eacute;chappement antislash sur n'importe quel autre caract&egrave;re, mais cela produira une alerte (si le niveau d'alerte maximal a - &eacute;t&eacute; fix&eacute;). + &eacute;t&eacute; fix&eacute;). En PHP 3.0, une alerte sera + affichée, si le niveau de rapport d'erreur est à + <literal>E_NOTICE</literal>. En PHP 4.0, aucune alerte ne sera + générée. </para> <para> Le deuxi&egrave;me moyen de d&eacute;limiter une cha&icirc;ne de @@ -204,8 +207,8 @@ guillemets doubles, sans les guillemets doubles. Cela signifie que vous n'avez pas &agrave; &eacute;chapper les guillemets (simples ou doubles) dans cette syntaxe. Les variables sont remplac&eacute;es par leur valeur, et - le m&ecirc;me soin doit leur &ecirc;tre aport&eacute; que dans les cha&icirc;nes &agrave; guillemets - doubles. + le m&ecirc;me soin doit leur &ecirc;tre aport&eacute; que dans les cha&icirc;nes + &agrave; guillemets doubles. <example> <title>Exemple de cha&icirc;ne Here Doc</title> <programlisting role="php"> @@ -459,11 +462,11 @@ $a[3] = 4; # Exemple 2: $a = array( - "couleur" => "rouge", - "saveur" => "sucr&eacute;e", - "forme" => "rond", - "nom" => "pomme", - 3 => 4 + "couleur" =&gt; "rouge", + "saveur" =&gt; "sucr&eacute;e", + "forme" =&gt; "rond", + "nom" =&gt; "pomme", + 3 =&gt; 4 ); ?&gt; </programlisting> @@ -477,20 +480,20 @@ <programlisting role="php"> &lt;?php $a = array( - "pomme" => array( - "couleur" => "rouge", - "saveur" => "sucr&eacute;e", - "forme" => "rond" + "pomme" =&gt; array( + "couleur" =&gt; "rouge", + "saveur" =&gt; "sucr&eacute;e", + "forme" =&gt; "rond" ), - "orange" => array( - "couleur" => "orange", - "saveur" => "am&egrave;re", - "forme" => "rond" + "orange" =&gt; array( + "couleur" =&gt; "orange", + "saveur" =&gt; "am&egrave;re", + "forme" =&gt; "rond" ), - "banane" => array( - "couleur" => "jaune", - "saveur" => "paste-y", - "forme" => "banano&iuml;de" + "banane" =&gt; array( + "couleur" =&gt; "jaune", + "saveur" =&gt; "paste-y", + "forme" =&gt; "banano&iuml;de" ) ); echo $a["pomme"]["saveur"]; # va afficher "sucr&eacute;e" Index: phpdoc/fr/language/variables.xml diff -u phpdoc/fr/language/variables.xml:1.15 phpdoc/fr/language/variables.xml:1.16 --- phpdoc/fr/language/variables.xml:1.15 Mon Jan 22 03:55:59 2001 +++ phpdoc/fr/language/variables.xml Tue Jan 23 02:35:46 2001 @@ -392,7 +392,10 @@ Ces variables sont cr&eacute;&eacute;es par PHP lui_m&ecirc;me. Les variables <varname>$HTTP_*_VARS</varname> ne sont disponibles que si l'option de configuration - <link linkend="ini.track-vars">track_vars</link> a &eacute;t&eacute; activ&eacute;e. + <link linkend="ini.track-vars">track_vars</link> a + &eacute;t&eacute; activ&eacute;e. Lorsque c'est le cas, ces variables + existent toujours, même si ce sont des tableaux vides. Cela évite les + usurpations malintentionnées de ces variables. </simpara> <note> <para> Index: phpdoc/fr/language/control-structures.xml diff -u phpdoc/fr/language/control-structures.xml:1.6 phpdoc/fr/language/control-structures.xml:1.7 --- phpdoc/fr/language/control-structures.xml:1.6 Mon Jan 22 03:55:59 2001 +++ phpdoc/fr/language/control-structures.xml Tue Jan 23 02:35:46 2001 @@ -454,7 +454,7 @@ <programlisting role="php"> &lt;?php foreach(array_expression as $value) commandes -foreach(array_expression as $key => $value) commandes +foreach(array_expression as $key =&gt; $value) commandes ?&gt; </programlisting> </informalexample> @@ -501,7 +501,7 @@ while (list($key, $value) = each ($arr)) { echo "Cl&eacute;: $key; Valeur: $value&lt;br&gt;\n"; } -foreach ($arr as $key => $value) { +foreach ($arr as $key =&gt; $value) { echo "Cl&eacute;: $key; Valeur: $value&lt;br&gt;\n"; } </programlisting> @@ -521,17 +521,17 @@ $a = array (1, 2, 3, 17); $i = 0; /* pour affichage seulement*/ foreach($a as $v) { - print "\$a[$i] => $k.\n"; + print "\$a[$i] =&gt; $k.\n"; } /* exemple 1: valeur et cl&eacute; */ $a = array ( - "un" => 1, - "deux" => 2, - "trois" => 3, - "dix-sept" => 17 + "un" =&gt; 1, + "deux" =&gt; 2, + "trois" =&gt; 3, + "dix-sept" =&gt; 17 ); -foreach($a as $k => $v) { - print "\$a[$k] => $v.\n"; +foreach($a as $k =&gt; $v) { + print "\$a[$k] =&gt; $v.\n"; } ?&gt; </programlisting>

« previous php.doc (#969333868) next »