cvs: phpdoc-fr /reference/json/functions json-decode.xml

From: Date: Sun, 27 Jan 2008 14:25:50 +0000
Subject: cvs: phpdoc-fr /reference/json/functions json-decode.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5516@lists.php.net to get a copy of this message
yannick Sun Jan 27 14:25:50 2008 UTC Modified files: /phpdoc-fr/reference/json/functions json-decode.xml Log: sync with EN fix bug #42908 http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/json/functions/json-decode.xml?r1=1.4&r2=1.5&diff_format=u Index: phpdoc-fr/reference/json/functions/json-decode.xml diff -u phpdoc-fr/reference/json/functions/json-decode.xml:1.4 phpdoc-fr/reference/json/functions/json-decode.xml:1.5 --- phpdoc-fr/reference/json/functions/json-decode.xml:1.4 Sun Jul 22 19:57:50 2007 +++ phpdoc-fr/reference/json/functions/json-decode.xml Sun Jan 27 14:25:50 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook"> @@ -91,6 +91,20 @@ ]]> </screen> </example> + <example> + <programlisting role="php"> +<![CDATA[ +<?php + +$json = '{"foo-bar": 12345}'; + +$obj = json_decode($json); +print $obj->{'foo-bar'}; // 12345 + +?> +]]> + </programlisting> + </example> </para> </refsect1> @@ -98,7 +112,7 @@ &reftitle.notes; <caution> <para> - Cette fonction retournera &false; si les données encodées JSON sont moins + Cette fonction retournera &false; si les données encodées JSON sont plus profondes que 127 éléments. </para> </caution>

« previous php.doc.fr (#5516) next »