cvs: phpdoc-pl /reference/json/functions json-decode.xml
| From: | Jaroslaw Glowacki | Date: | Sun, 30 Mar 2008 15:24:13 +0000 |
| Subject: | cvs: phpdoc-pl /reference/json/functions json-decode.xml | ||
| Groups: | php.doc.pl | ||
| Request: | Send a blank email to doc-pl+get-1286@lists.php.net to get a copy of this message | ||
joeaccord Sun Mar 30 15:24:13 2008 UTC
Modified files:
/phpdoc-pl/reference/json/functions json-decode.xml
Log:
syncing with EN
http://cvs.php.net/viewvc.cgi/phpdoc-pl/reference/json/functions/json-decode.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc-pl/reference/json/functions/json-decode.xml
diff -u phpdoc-pl/reference/json/functions/json-decode.xml:1.3
phpdoc-pl/reference/json/functions/json-decode.xml:1.4
--- phpdoc-pl/reference/json/functions/json-decode.xml:1.3 Sat Jun 23 13:29:32 2007
+++ phpdoc-pl/reference/json/functions/json-decode.xml Sun Mar 30 15:24:13 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-2"?>
-<!-- EN-Revision: 1.3 Maintainer: joeaccord Status: ready -->
-<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.4 Maintainer: joeaccord Status: ready -->
+<!-- $Revision: 1.4 $ -->
<refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>json_decode</refname>
@@ -90,6 +90,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>