cvs: phpdoc-ro /reference/json/functions json-decode.xml
| From: | Simion Onea | Date: | Sat, 29 Mar 2008 10:30:45 +0000 |
| Subject: | cvs: phpdoc-ro /reference/json/functions json-decode.xml | ||
| Groups: | php.doc.ro | ||
| Request: | Send a blank email to doc-ro+get-380@lists.php.net to get a copy of this message | ||
simionea Sat Mar 29 10:30:45 2008 UTC
Modified files:
/phpdoc-ro/reference/json/functions json-decode.xml
Log:
Updated the file.
http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/json/functions/json-decode.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc-ro/reference/json/functions/json-decode.xml
diff -u phpdoc-ro/reference/json/functions/json-decode.xml:1.2
phpdoc-ro/reference/json/functions/json-decode.xml:1.3
--- phpdoc-ro/reference/json/functions/json-decode.xml:1.2 Fri Oct 26 06:06:54 2007
+++ phpdoc-ro/reference/json/functions/json-decode.xml Sat Mar 29 10:30:45 2008
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.2 $ -->
-<!-- EN-Revision: 1.3 Maintainer: radical Status: ok -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.4 Maintainer: radical Status: ok -->
+<!-- CREDITS: simionea -->
<refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>json_decode</refname>
@@ -91,6 +92,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>