Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions language/types/integer.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e587d0655e426f97b3fcb431453da5030e743b23 Maintainer: Avenger Status: ready -->
<!-- EN-Revision: 78a11d3ca004ee937549d932e77a79c51b9777cd Maintainer: Avenger Status: ready -->
<!-- CREDITS: Gregory, dallas, Altair, mowangjuanzi, Luffy -->
<sect1 xml:id="language.types.integer">
<title>Integer 整型</title>
Expand Down Expand Up @@ -147,8 +147,8 @@ var_dump(round(25/7)); // float(4)
<title>转换为整型</title>

<simpara>
要明确地将一个值转换为 <type>int</type>,用 <literal>(int)</literal>
<literal>(integer)</literal> 强制转换。不过大多数情况下都不需要强制转换,因为当运算符,函数或流程控制需要一个
要明确地将一个值转换为 <type>int</type>,用 <literal>(int)</literal> 强制转换。
不过大多数情况下都不需要强制转换,因为当运算符,函数或流程控制需要一个
<type>int</type> 参数时,值会自动转换。还可以通过函数
<function>intval</function> 来将一个值转换成 <type>int</type> 整型。
</simpara>
Expand Down
8 changes: 4 additions & 4 deletions language/types/type-juggling.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 87fd768a70bb136ad6ba94699e8c6332e0c115e0 Maintainer: Avenger Status: ready -->
<!-- EN-Revision: 78a11d3ca004ee937549d932e77a79c51b9777cd Maintainer: Avenger Status: ready -->
<!-- CREDITS: Geogory, dallas, Altair, mowangjuanzi, Luffy -->
<sect1 xml:id="language.types.type-juggling">
<title>类型转换</title>
Expand Down Expand Up @@ -277,14 +277,14 @@ var_dump($bar);
<member><literal>(unset)</literal> ——转换为 <type>NULL</type></member>
</simplelist>

<note>
<warning>
<para>
<literal>(integer)</literal> 是 <literal>(int)</literal> 转换的别名。<literal>(boolean)</literal>
是 <literal>(bool)</literal> 转换的别名。<literal>(binary)</literal> 是 <literal>(string)</literal>
转换的别名。<literal>(double)</literal> 和 <literal>(real)</literal> 是 <literal>(float)</literal>
转换的别名。这些转换不使用标准的类型名称,不推荐使用
转换的别名。这些转换不使用标准的类型名称,自 PHP 8.5.0 起已弃用
</para>
</note>
</warning>

<warning>
<simpara>
Expand Down
10 changes: 8 additions & 2 deletions reference/array/functions/array-key-exists.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 73048c75fbe328342b74f0ffb0a0c85c477f5cde Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: faa17c20aa7cdada1806b5b60d2c1b3bbcfff0d9 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.array-key-exists" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>array_key_exists</refname>
Expand Down Expand Up @@ -70,6 +70,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
在 <parameter>key</parameter> 参数中使用 <type>null</type> 已被弃用,请改用空字符串。
</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Expand Down
9 changes: 8 additions & 1 deletion reference/dir/directory.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: 徐骁 Status: ready -->
<!-- EN-Revision: ff7eeb11a79400328c67727335240cfc4355e93d Maintainer: 徐骁 Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<reference xml:id="class.directory" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">

Expand All @@ -26,6 +26,7 @@
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<modifier>final</modifier>
<classname>Directory</classname>
</ooclass>

Expand Down Expand Up @@ -88,6 +89,12 @@
</row>
</thead>
<tbody>
<row>
<entry>8.5.0</entry>
<entry>
该类现为最终类。
</entry>
</row>
<row>
<entry>8.1.0</entry>
<entry>
Expand Down
5 changes: 1 addition & 4 deletions reference/json/setup.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 7e42240fb5f565c469f04d595f0d1c4fdda48dfe Maintainer: daijie Status: ready -->
<!-- EN-Revision: 2b5015d025e2b72b2a4dd894323961626872cac7 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<chapter xml:id="json.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.setup;
Expand All @@ -18,9 +18,6 @@
<para>
PHP 8.0.0 之前,JSON 扩展默认捆绑并编译到 PHP 中,但可以使用 <option role="configure">--disable-json</option> 手动禁用。
</para>
<para>
在 5.2.0 之前,JSON 扩展作为 <link xlink:href="&url.pecl.package;json">PECL 模块</link>安装。
</para>
</section>

</chapter>
Expand Down
6 changes: 3 additions & 3 deletions reference/pdo/pdo/quote.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 661e6858acade9f5a08fc8f9c07b605f42f4a700 Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<!-- EN-Revision: a58aa95a35db6f3c5bebd8e4cff5c4abeea1441b Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="pdo.quote" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>PDO::quote</refname>
Expand All @@ -18,7 +18,7 @@
</methodsynopsis>

<para>
<methodname>PDO::quote</methodname> 为输入的字符串添加引号(如果有需要),并对特殊字符进行转义,且引号的风格和底层驱动适配。
<methodname>PDO::quote</methodname> 为输入的字符串添加引号,并对特殊字符进行转义,且引号的风格和底层驱动适配。
</para>
<para>
如果使用此函数构建 SQL 语句,<emphasis>强烈</emphasis>建议使用 <methodname>PDO::prepare</methodname> 配合参数构建,而不是用 <methodname>PDO::quote</methodname>
Expand Down