[PHP-DOC] cvs: phpdoc /fr/functions var.xml From: Damien Seguy (dams <email protected>)
Date: 12/26/00

dams Tue Dec 26 02:24:47 2000 EDT

  Modified files:
    /phpdoc/fr/functions var.xml
  Log:
  Fixing typos (etourne -> retourne).
  
Index: phpdoc/fr/functions/var.xml
diff -u phpdoc/fr/functions/var.xml:1.5 phpdoc/fr/functions/var.xml:1.6
--- phpdoc/fr/functions/var.xml:1.5 Fri Dec 8 00:53:07 2000
+++ phpdoc/fr/functions/var.xml Tue Dec 26 02:24:47 2000
@@ -15,7 +15,7 @@
      <paramdef>mixed <parameter>var</parameter></paramdef>
     </funcsynopsis>
     <simpara>
- <function>doubleval</function> etourne la valeur num&eacute;rique
+ <function>doubleval</function> retourne la valeur num&eacute;rique
        (double) de la variable <parameter>var</parameter>.
     </simpara>
     <para>
@@ -24,9 +24,11 @@
      un tableau ou un objet.
     <informalexample>
       <programlisting role="php">
-$var = '122.34343The';
-$double_value_of_var = doubleval($var);
-print $double_value_of_var; // affiche 122.34343
+&lt;?php
+$var = '122.34343Le';
+$double_valeur_de_var = doubleval($var);
+print $double_valeur_de_var; // affiche 122.34343
+?gt;
       </programlisting>
     </informalexample>
     </para>
@@ -54,11 +56,15 @@
      diff&eacute;rente de 0; la valeur TRUE dans les autres cas.
      <informalexample>
       <programlisting role="php">
+&lt;?php
 $var = 0;
-if (empty($var)) { #retourne TRUE print 'soit $var vaut 0, soit il n'est pas d&eacute;fini';
+if (empty($var)) { // retourne TRUE
+ print 'soit $var vaut 0, soit il n'est pas d&eacute;fini';
 }
-if (!isset($var)) { // retourne FALSE print '$var n'est pas d&eacute;finie';
+if (!isset($var)) { // retourne FALSE
+ print '$var n'est pas d&eacute;finie';
 }
+?gt;
       </programlisting>
      </informalexample>
     </para>
@@ -547,9 +553,13 @@
      FALSE.
      <informalexample>
       <programlisting role="php">
+&lt;?php
 $a = "test";
-echo isset ($a); // TRUE unset ($a);
-echo isset ($a); // FALSE </programlisting>
+echo isset ($a); // TRUE
+unset($a);
+echo isset ($a); // FALSE
+?gt;
+ </programlisting>
      </informalexample>
     </para>
     <simpara>
@@ -590,7 +600,7 @@
 &lt;?php
 $a = array (1, 2, array ("a", "b", "c"));
 print_r ($a);
-?>
+?gt;
       </programlisting>
      </informalexample>
     </para>
@@ -633,6 +643,7 @@
      <example>
       <title>Exemple avec <function>serialize</function></title>
       <programlisting role="php">
+&lt;?php
 // $session_data contient un tableau multi-dimensionnel , avec les
 // informations de session de l'utilisateur courant. On utilise serialize()
 // pour les stocker dans une base de donn&eacute;es
@@ -647,6 +658,7 @@
     /* Grosse bourde! Souffre et potasse! */
     }
 }
+?gt;
       </programlisting>
      </example>
     </para>
@@ -745,6 +757,7 @@
      <example>
       <title>Exemple avec <function>unserialize</function></title>
       <programlisting role="php">
+&lt;?php
 // Ici, on utilise <function>unserialize</function> pour charger les donn&eacute;es de sessions
 // depuis la base de donn&eacute;es, dans $session_data. Cet exemple compl&egrave;te
 // celui fourni avec <function>serialize</function>.
@@ -762,6 +775,7 @@
     $session_data = array();
     }
 }
+?gt;
       </programlisting>
      </example>
     </para>
@@ -790,12 +804,14 @@
      <example>
       <title>Exemple avec <function>unset</function></title>
       <programlisting role="php">
+&lt;?php
 // Destruction d'une seule variable
 unset ($foo);
 // Destruction d'un &eacute;l&eacute;ment de tableau
 unset ($bar['quux']);
 // Destruction de plusieurs variables
 unset ($foo1, $foo2, $foo3);
+?gt;
       </programlisting>
      </example>
     </para>
@@ -811,6 +827,7 @@
      <function>unset</function>.
      <informalexample>
       <programlisting role="php">
+&lt;?php
 function destroy_foo() {
     global $foo;
     unset($foo);
@@ -818,6 +835,7 @@
 $foo = 'bar';
 destroy_foo();
 echo $foo;
+?gt;
       </programlisting>
      </informalexample>
      L'exemple ci dessus affichera :
@@ -834,6 +852,7 @@
      qu'elle avait avant l'appel de <function>unset</function>.
      <informalexample>
       <programlisting role="php">
+&lt;?php
 function foo(&$bar) {
     unset($bar);
     $bar = "bla";
@@ -842,6 +861,7 @@
 echo "$bar\n";
 foo($bar);
 echo "$bar\n";
+?gt;
       </programlisting>
      </informalexample>
      L'exemple ci dessus va afficher :
@@ -858,6 +878,7 @@
      statique, plut&ocirc;t que la variable statique elle m&ecirc;me.
      <informalexample>
       <programlisting role="php">
+&lt;?php
 function foo() {
     static $a;
     $a++;
@@ -867,6 +888,7 @@
 foo();
 foo();
 foo();
+?gt;
       </programlisting>
      </informalexample>
      L'affichage du script ci-dessus donnera :
@@ -884,11 +906,13 @@
      <parameter>$GLOBALS</parameter> :
      <informalexample>
       <programlisting role="php">
+&lt;?php
 function foo() {
     unset($GLOBALS['bar']);
 }
 $bar = "truc";
 foo();
+?gt;
       </programlisting>
      </informalexample>
     </para>
@@ -926,7 +950,7 @@
 &lt;?php
     $a = array (1, 2, array ("a", "b", "c"));
     var_dump ($a);
-?>
+?gt;
 &lt;/pre>
       </programlisting>
      </informalexample>