File tree 3 files changed +11
-11
lines changed
reference/filter/functions
3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1682,7 +1682,7 @@ It is strongly recommended to avoid timezone abbreviations.
1682
1682
<!ENTITY dom.tokenlist.errors '<itemizedlist xmlns =" http://docbook.org/ns/docbook" >
1683
1683
<listitem >
1684
1684
<simpara >
1685
- 如果 token 包含任何 null 字节,抛出 <exceptionname >ValueError</exceptionname >。
1685
+ 如果 token 包含 null 字节,抛出 <exceptionname >ValueError</exceptionname >。
1686
1686
</simpara >
1687
1687
</listitem >
1688
1688
<listitem >
@@ -1693,7 +1693,7 @@ It is strongly recommended to avoid timezone abbreviations.
1693
1693
</listitem >
1694
1694
<listitem >
1695
1695
<simpara >
1696
- 如果 token 包含任意 ASCII 空格,抛出 code 为 <constant >Dom\INVALID_CHARACTER_ERR</constant >
1696
+ 如果 token 包含 ASCII 空格,抛出 code 为 <constant >Dom\INVALID_CHARACTER_ERR</constant >
1697
1697
的 <exceptionname >Dom\DOMException</exceptionname >。
1698
1698
</simpara >
1699
1699
</listitem >
@@ -2698,7 +2698,7 @@ Windows 环境下的 Apache 配置文件中添加路径值时,所有的反斜
2698
2698
<varname linkend =" streamwrapper.props.context" >streamWrapper::$context</varname >
2699
2699
会被改变。</para ></note >'>
2700
2700
2701
- <!ENTITY stream.bucket.param '<parameter >bucket</parameter > 现在期望 <classname >StreamBucket</classname > 实例;之前是 <classname >stdClass</classname >。'>
2701
+ <!ENTITY stream.bucket.param '<parameter >bucket</parameter > 现在期望 <classname >StreamBucket</classname > 实例;之前期望 <classname >stdClass</classname >。'>
2702
2702
<!ENTITY stream.bucket.return '此函数现在返回 <classname >StreamBucket</classname > 实例;之前返回 <classname >stdClass</classname >。'>
2703
2703
2704
2704
<!-- Gmagick -->
Original file line number Diff line number Diff line change 18
18
</methodsynopsis >
19
19
<simpara >
20
20
使用 <constant >FILTER_VALIDATE_<replaceable >*</replaceable ></constant > 验证过滤器、<constant >FILTER_SANITIZE_<replaceable >*</replaceable ></constant >
21
- 清理过滤器或自定义过滤器过滤关联 &array; 的值。
21
+ 清理过滤器或自定义过滤器来过滤关联 &array; 的值。
22
22
</simpara >
23
23
</refsect1 >
24
24
37
37
<term ><parameter >options</parameter ></term >
38
38
<listitem >
39
39
<simpara >
40
- 要么是选项的关联 <type >array</type >,或应用于每个条目的过滤器 ,可以是使用 <constant >FILTER_VALIDATE_<replaceable >*</replaceable ></constant >
41
- 常量的验证过滤器,也可以是使用 <constant >FILTER_SANITIZE_<replaceable >*</replaceable ></constant >常量的清理过滤器。
40
+ 要么是选项的关联 <type >array</type >,要么是应用于每个条目的过滤器 ,可以是使用 <constant >FILTER_VALIDATE_<replaceable >*</replaceable ></constant >
41
+ 常量的验证过滤器,也可以是使用 <constant >FILTER_SANITIZE_<replaceable >*</replaceable ></constant > 常量的清理过滤器。
42
42
</simpara >
43
43
<simpara >
44
- 选项数组是关联数组,其中 key 对应于数据 <parameter >array</parameter >中的键,而关联的值要么是应用于该条目的过滤器,要么是描述如何以及应用哪个过滤器到该条目的关联数组。
44
+ 选项数组是关联数组,其中 key 对应于数据 <parameter >array</parameter > 中的键,而关联的值要么是应用于该条目的过滤器,要么是描述如何以及应用哪个过滤器到该条目的关联数组。
45
45
</simpara >
46
46
<simpara >
47
47
描述如何应用过滤器的关联数组必须包含 <literal >'filter'</literal >
Original file line number Diff line number Diff line change 58
58
<term ><parameter >options</parameter ></term >
59
59
<listitem >
60
60
<simpara >
61
- 可以是选项的关联 <type >array</type >,也可以是过滤器 flag 常量
61
+ 要么是选项的关联 <type >array</type >,要么是过滤器 flag 常量
62
62
<constant >FILTER_FLAG_<replaceable >*</replaceable ></constant > 的位掩码。
63
63
</simpara >
64
64
<simpara >
65
- 如果 <parameter >filter</parameter > 接受选项,则可以使用数组的 <literal >"flags"</literal >
65
+ 如果 <parameter >filter</parameter > 接受选项(option) ,则可以使用数组的 <literal >"flags"</literal >
66
66
字段提供 flag。
67
67
</simpara >
68
68
</listitem >
74
74
&reftitle.returnvalues;
75
75
<simpara >
76
76
成功时返回过滤后的数据。失败时返回 &false; ,除非使用 <constant >FILTER_NULL_ON_FAILURE</constant >
77
- flag,在这种情况下返回 &null; 。
77
+ flag,在这种情况下会返回 &null; 。
78
78
</simpara >
79
79
</refsect1 >
80
80
@@ -158,7 +158,7 @@ bool(false)
158
158
</example >
159
159
160
160
<example >
161
- <title >直接或者通过 <type >array</type > 提供 flag</title >
161
+ <title >直接提供或者通过 <type >array</type > 提供 flag</title >
162
162
<programlisting role =" php" >
163
163
<![CDATA[
164
164
<?php
You can’t perform that action at this time.
0 commit comments