svn: /phpdoc/en/trunk/reference/json/functions/ json-decode.xml
| From: | Jakub Vrana | Date: | Fri, 20 Nov 2009 12:15:07 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/json/functions/ json-decode.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5500@lists.php.net to get a copy of this message | ||
vrana Fri, 20 Nov 2009 12:15:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=291072
Log:
Can return anything (bug #46518)
Bug: http://bugs.php.net/46518 (Open) json_decode return
values
Changed paths:
U phpdoc/en/trunk/reference/json/functions/json-decode.xml
Modified: phpdoc/en/trunk/reference/json/functions/json-decode.xml
===================================================================
--- phpdoc/en/trunk/reference/json/functions/json-decode.xml 2009-11-20 11:56:32 UTC (rev 291071)
+++ phpdoc/en/trunk/reference/json/functions/json-decode.xml 2009-11-20 12:15:07 UTC (rev 291072)
@@ -55,9 +55,10 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns an <type>object</type> or if the optional
- <parameter>assoc</parameter> parameter is &true;, an associative
- <type>array</type> is instead returned. &null; is returned if the
+ Returns the value encoded in <parameter>json</parameter> in appropriate
+ PHP type. Values <literal>true</literal>, <literal>false</literal> and
+ <literal>null</literal> (case-insensitive) are returned as &true;, &false;
+ and &null; respectively. &null; is returned if the
<parameter>json</parameter> cannot be decoded or if the encoded
data is deeper than the recursion limit.
</para>