Skip to content

Commit f1d7f04

Browse files
author
Yoshinari Takaoka
committed
Update default value of json_decode()'s $assoc parameter
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@350594 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent fdef9b4 commit f1d7f04

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

reference/json/functions/json-decode.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 40352bfbde2dba2110bab608d6a65687c85ad064 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 3d0baa6639d759d42e3c180d455580b19e4f4deb Maintainer: takagi Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -13,7 +13,7 @@
1313
<methodsynopsis>
1414
<type>mixed</type><methodname>json_decode</methodname>
1515
<methodparam><type>string</type><parameter>json</parameter></methodparam>
16-
<methodparam choice="opt"><type>bool</type><parameter>assoc</parameter><initializer>&false;</initializer></methodparam>
16+
<methodparam choice="opt"><type>bool</type><parameter>assoc</parameter><initializer>&null;</initializer></methodparam>
1717
<methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
1818
<methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
1919
</methodsynopsis>
@@ -44,6 +44,10 @@
4444
<listitem>
4545
<para>
4646
&true; の場合、返されるオブジェクトは連想配列形式になります。
47+
&false; の場合、返されるオブジェクトは &object; になります。
48+
&null; の場合、返されるオブジェクトは <parameter>options</parameter> に
49+
<constant>JSON_OBJECT_AS_ARRAY</constant> が設定されているかどうかによって、
50+
連想配列形式か &object; かが変化します。
4751
</para>
4852
</listitem>
4953
</varlistentry>
@@ -107,6 +111,12 @@
107111
が追加されました。
108112
</entry>
109113
</row>
114+
<row>
115+
<entry>7.2.0</entry>
116+
<entry>
117+
<parameter>assoc</parameter> は nullable になりました。
118+
</entry>
119+
</row>
110120
<row>
111121
<entry>7.2.0</entry>
112122
<entry>

0 commit comments

Comments
 (0)