Skip to content

Commit

Permalink
Merge branch 'master' into sync
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored Oct 14, 2024
2 parents 270bd4b + be809cd commit db38ada
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion reference/mysqli/constants.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: 8cedd63d950e83ff12682253dadb7b3a462b20aa Maintainer: HonestQiao Status: ready -->
<!-- EN-Revision: eae0ba503f8e8ff8f2deee9e45394da82314de7f Maintainer: HonestQiao Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<appendix xml:id="mysqli.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
Expand Down
10 changes: 7 additions & 3 deletions reference/pdo/pdostatement/fetchall.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: 28529d3539b850e870e3aa97570f4db0e53daa03 Maintainer: ichenshy Status: ready -->
<!-- EN-Revision: 44bcc82c7d1a0dea5578093833d3172c0c742f5a Maintainer: ichenshy Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xml:id="pdostatement.fetchall" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -50,10 +50,14 @@
想要返回一个包含结果集中单独一列所有值的数组,需要指定 <constant>PDO::FETCH_COLUMN</constant> 。通过指定 <parameter>column</parameter> 参数获取想要的列。
</para>
<para>
想要获取结果集中单独一列的唯一值,需要将 <constant>PDO::FETCH_COLUMN</constant> 和 <constant>PDO::FETCH_UNIQUE</constant> 按位或
要根据某一列的值(而不是连续的数字)来索引结果数组,在 SQL 的列(column)列表中将该列名放在首位,并使用 <constant>PDO::FETCH_UNIQUE</constant>。这一列必须仅包含唯一值,否则部分数据将会丢失
</para>
<para>
想要返回一个根据指定列把值分组后的关联数组,需要将 <constant>PDO::FETCH_COLUMN</constant> 和 <constant>PDO::FETCH_GROUP</constant> 按位或。
要将结果以三维数组的形式对指定列的值进行分组,在 SQL 的列(column)列表中将该列名放在首位,并使用 <constant>PDO::FETCH_GROUP</constant>。
</para>
<para>
要将结果以二维数组的形式进行分组,使用 <constant>PDO::FETCH_GROUP</constant> 与 <constant>PDO::FETCH_COLUMN</constant>
的按位或(OR)操作。结果将会按照第一列进行分组,数组元素的值将是来自第二列的相应条目的列表数组。
</para>
</listitem>
</varlistentry>
Expand Down
8 changes: 4 additions & 4 deletions reference/sockets/functions/socket-recv.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: 765056369ba5cfb582b2edfd9d83831b70690feb Maintainer: daijie Status: ready -->
<!-- CREDITS: her-cat, Luffy -->
<!-- CREDITS: her-cat, Luffy, mowangjuanzi -->
<refentry xml:id="function.socket-recv" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>socket_recv</refname>
Expand Down Expand Up @@ -144,10 +144,10 @@
&reftitle.examples;
<para>
<example>
<title><function>socket_recv</function> 范例</title>
<title><function>socket_recv</function> 示例</title>
<para>
该范例简单地使用 <function>socket_recv</function> 重写了 <xref linkend="sockets.examples"/> 中的
第一个例子
该示例简单地使用 <function>socket_recv</function> 重写了 <xref linkend="sockets.examples"/> 中的
第一个示例
</para>
<programlisting role="php">
<![CDATA[
Expand Down

0 comments on commit db38ada

Please sign in to comment.