cvs: phpdoc-fr /reference/json constants.xml
| From: | Damien Seguy | Date: | Sat, 21 Mar 2009 14:45:15 +0000 |
| Subject: | cvs: phpdoc-fr /reference/json constants.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-6809@lists.php.net to get a copy of this message | ||
dams Sat Mar 21 14:45:15 2009 UTC
Modified files:
/phpdoc-fr/reference/json constants.xml
Log:
synch with en
http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/json/constants.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-fr/reference/json/constants.xml
diff -u phpdoc-fr/reference/json/constants.xml:1.3 phpdoc-fr/reference/json/constants.xml:1.4
--- phpdoc-fr/reference/json/constants.xml:1.3 Fri Dec 26 20:27:58 2008
+++ phpdoc-fr/reference/json/constants.xml Sat Mar 21 14:45:15 2009
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
-<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready -->
-<!-- Reviewed: no -->
+<!-- $Revision: 1.4 $ -->
+<!-- EN-Revision: 1.9 Maintainer: dams Status: ready -->
+<!-- Reviewed: yes -->
<appendix xml:id="json.constants" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
@@ -57,6 +57,72 @@
</listitem>
</varlistentry>
</variablelist>
+
+ <para>
+ Les constantes suivantes peuvent être combinées pour former
+ des options de <function>json_encode</function>. Elles sont
+ toutes disponibles depuis PHP 5.3.0.
+ </para>
+ <variablelist>
+ <varlistentry>
+ <term>
+ <constant>JSON_HEX_TAG</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ Tous les caractères < et > sont convertis en séquences
+ \u003C et \u003E.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>JSON_HEX_AMP</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ Tous les caractères & sont convertis en \u0026.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>JSON_HEX_APOS</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ Tous les guillemets ' sont convertis en \u0027.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>JSON_HEX_QUOT</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ Tous les guillemets doubles " sont convertis en \u0022.
+ </simpara>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
+ <constant>JSON_FORCE_OBJECT</constant>
+ (<type>integer</type>)
+ </term>
+ <listitem>
+ <simpara>
+ Produit un objet plutôt qu'un tableau, lorsqu'un tableau
+ non-associatif est utilisé. C'est particulièrement utile lorsque
+ le destinataire du résultat attend un objet, et que le tableau
+ est vide.
+ </simpara>
+ </listitem>
+ </varlistentry>
</appendix>
<!-- Keep this comment at the end of the file