每个过滤器都正如其名字暗示的那样工作并与内置的 PHP 字符串函数的行为相对应。对于指定过滤器的更多信息,请参考该函数的手册页。
    string.rot13(自 PHP 4.3.0 起)使用此过滤器等同于用 
    str_rot13()函数处理所有的流数据。
Example #1 string.rot13
<?php
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'string.rot13');
fwrite($fp, "This is a test.\n");
/* Outputs:  Guvf vf n grfg.   */
?>
    string.toupper(自 PHP 5.0.0 起)使用此过滤器等同于用 
    strtoupper()函数处理所有的流数据。
Example #2 string.toupper
<?php
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'string.toupper');
fwrite($fp, "This is a test.\n");
/* Outputs:  THIS IS A TEST.   */
?>
    string.tolower(自 PHP 5.0.0 起)使用此过滤器等同于用 
    strtolower()函数处理所有的流数据。
Example #3 string.tolower
<?php
$fp = fopen('php://output', 'w');
stream_filter_append($fp, 'string.tolower');
fwrite($fp, "This is a test.\n");
/* Outputs:  this is a test.   */
?>