svn: /phpdoc/zh/trunk/appendices/ filters.xml
[email protected] (Dai Jie) Mon, 02 Dec 2019 15:59:04 +0000
| Newsgroups | php.doc.zh |
|---|---|
| Message-ID | <[email protected]> |
daijie Mon, 02 Dec 2019 15:59:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=348398
Log:
add missing sections
Changed paths:
U phpdoc/zh/trunk/appendices/filters.xml
Modified: phpdoc/zh/trunk/appendices/filters.xml
===================================================================
--- phpdoc/zh/trunk/appendices/filters.xml 2019-12-02 12:20:37 UTC (rev 348397)
+++ phpdoc/zh/trunk/appendices/filters.xml 2019-12-02 15:59:04 UTC (rev 348398)
@@ -68,14 +68,22 @@
]]>
</programlisting>
</example>
- <simpara>
- <literal>string.strip_tags</literal>(自 PHP 5.0.0 起)使用此过滤器等同于用
+ </section>
+
+ <section xml:id="filters.string.strip_tags">
+ <title>string.strip_tags</title>
+ <simpara>
+ 使用此过滤器等同于用
<function>strip_tags</function>函数处理所有的流数据。可以用两种格式接收参数:一种是和
- <function>strip_tags</function>函数第二个参数相似的一个包含有标记列表的字符串,一种是一个包含有标记名的数组。</simpara>
- <example>
- <title>string.strip_tags</title>
- <programlisting role="php">
- <![CDATA[
+ <function>strip_tags</function>函数第二个参数相似的一个包含有标记列表的字符串,一种是一个包含有标记名的数组。
+ </simpara>
+ <para>
+ &warn.deprecated.feature-7-3-0;
+ </para>
+ <example>
+ <title>string.strip_tags</title>
+ <programlisting role="php">
+<![CDATA[
<?php
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'string.strip_tags', STREAM_FILTER_WRITE, "<b><i><u>");
@@ -90,9 +98,10 @@
/* Outputs: <b>bolded text</b> enlarged to a level 1 heading */
?>
]]>
-</programlisting>
- </example>
+ </programlisting>
+ </example>
</section>
+
<section xml:id="filters.convert">
<title>转换过滤器</title>
<simpara>如同 string.* 过滤器,convert.* 过滤器的作用就和其名字一样。转换过滤器是 PHP 5.0.0 添加的。对于指定过滤器的更多信息,请参考该函数的手册页。</simpara>