array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.stream-get-filters.php', 1 => 'stream_get_filters', ), 'up' => array ( 0 => 'ref.stream.php', 1 => 'Stream 函数', ), 'prev' => array ( 0 => 'function.stream-get-contents.php', 1 => 'stream_get_contents', ), 'next' => array ( 0 => 'function.stream-get-line.php', 1 => 'stream_get_line', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/stream/functions/stream-get-filters.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
stream_get_filters — 获取已注册的数据流过滤器列表
此函数没有参数。
返回一个包含所有有效的数据流过滤器名字的索引数组。
示例 #1 使用 stream_get_filters()
<?php
$streamlist = stream_get_filters();
print_r($streamlist);
?>
以上示例的输出类似于:
Array ( [0] => string.rot13 [1] => string.toupper [2] => string.tolower [3] => string.base64 [4] => string.quoted-printable )