Date: 12/26/00
- Next message: Egon Schmid: "[PHP-DOC] cvs: phpdoc /fr/functions var.xml"
- Previous message: Damien Seguy: "[PHP-DOC] cvs: phpdoc /fr/functions uodbc.xml"
- Next in thread: Egon Schmid: "[PHP-DOC] cvs: phpdoc /fr/functions var.xml"
- Maybe reply: Egon Schmid: "[PHP-DOC] cvs: phpdoc /fr/functions var.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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érique
+ <function>doubleval</function> retourne la valeur numé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
+<?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érente de 0; la valeur TRUE dans les autres cas.
<informalexample>
<programlisting role="php">
+<?php
$var = 0;
-if (empty($var)) { #retourne TRUE print 'soit $var vaut 0, soit il n'est pas défini';
+if (empty($var)) { // retourne TRUE
+ print 'soit $var vaut 0, soit il n'est pas défini';
}
-if (!isset($var)) { // retourne FALSE print '$var n'est pas définie';
+if (!isset($var)) { // retourne FALSE
+ print '$var n'est pas définie';
}
+?gt;
</programlisting>
</informalexample>
</para>
@@ -547,9 +553,13 @@
FALSE.
<informalexample>
<programlisting role="php">
+<?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 @@
<?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">
+<?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é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">
+<?php
// Ici, on utilise <function>unserialize</function> pour charger les données de sessions
// depuis la base de données, dans $session_data. Cet exemple complè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">
+<?php
// Destruction d'une seule variable
unset ($foo);
// Destruction d'un élé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">
+<?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">
+<?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ôt que la variable statique elle même.
<informalexample>
<programlisting role="php">
+<?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">
+<?php
function foo() {
unset($GLOBALS['bar']);
}
$bar = "truc";
foo();
+?gt;
</programlisting>
</informalexample>
</para>
@@ -926,7 +950,7 @@
<?php
$a = array (1, 2, array ("a", "b", "c"));
var_dump ($a);
-?>
+?gt;
</pre>
</programlisting>
</informalexample>
- Next message: Egon Schmid: "[PHP-DOC] cvs: phpdoc /fr/functions var.xml"
- Previous message: Damien Seguy: "[PHP-DOC] cvs: phpdoc /fr/functions uodbc.xml"
- Next in thread: Egon Schmid: "[PHP-DOC] cvs: phpdoc /fr/functions var.xml"
- Maybe reply: Egon Schmid: "[PHP-DOC] cvs: phpdoc /fr/functions var.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

