svn: /phpdoc/zh/trunk/reference/json/functions/ json-encode.xml
| From: | Dai Jie | Date: | Wed, 04 Oct 2017 21:41:44 +0000 |
| Subject: | svn: /phpdoc/zh/trunk/reference/json/functions/ json-encode.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-5011@lists.php.net to get a copy of this message | ||
daijie Wed, 04 Oct 2017 21:41:44 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=343184
Log:
Keep in sync with EN.
Changed paths:
U phpdoc/zh/trunk/reference/json/functions/json-encode.xml
Modified: phpdoc/zh/trunk/reference/json/functions/json-encode.xml
===================================================================
--- phpdoc/zh/trunk/reference/json/functions/json-encode.xml 2017-10-04 21:31:51 UTC (rev 343183)
+++ phpdoc/zh/trunk/reference/json/functions/json-encode.xml 2017-10-04 21:41:44 UTC (rev 343184)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 339594 Maintainer: daijie Status: ready -->
+<!-- EN-Revision: 342210 Maintainer: daijie Status: ready -->
<refentry xml:id="function.json-encode" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>json_encode</refname>
@@ -16,8 +16,11 @@
<methodparam
choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
</methodsynopsis>
<para>
- 返回 <parameter>value</parameter> 值的 JSON 形式
+ 返回字符串,包含了 <parameter>value</parameter> 值 JSON 形式的表示。
</para>
+ <para>
+ 编码受传入的 <parameter>options</parameter>
参数影响,此外浮点值的编码依赖于 <link
linkend="ini.serialize-precision">serialize_precision</link>。
+ </para>
</refsect1>
<refsect1 role="parameters">
@@ -107,7 +110,20 @@
增加 <parameter>depth</parameter> 参数。
</entry>
</row>
+
<row>
+ <entry>5.5.0</entry>
+ <entry>
+ 增加了 <constant>JSON_PARTIAL_OUTPUT_ON_ERROR</constant> 选项。
+ </entry>
+ </row>
+ <row>
+ <entry>5.5.0</entry>
+ <entry>
+ 失败时返回的值从 <literal>null</literal> 字符串改成 &false;。
+ </entry>
+ </row>
+ <row>
<entry>5.4.0</entry>
<entry>
<parameter>options</parameter> 参数增加常量: