位置: 编程技术 - 正文

PHP:stream_filter_remove()的用法_Stream函数

编辑:rootadmin
stream_filter_remove

推荐整理分享PHP:stream_filter_remove()的用法_Stream函数,希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:,内容如对您有帮助,希望把文章链接给更多的朋友!

(PHP 5 >= 5.1.0)

stream_filter_remove — 从资源流里移除某个过滤器

说明 bool stream_filter_remove ( resource $stream_filter )

移除之前通过 stream_filter_prepend() 或者 stream_filter_append() 添加到资源流里面的过滤器。 在移除之前,残留在过滤器内部缓冲区里的所有数据刷新到下一个过滤器。

参数

stream_filter PHP:stream_filter_remove()的用法_Stream函数

需要被移除的资源流过滤器。

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE。

范例

Example #1 动态地重新过滤一个资源流

<?php/*Openatestfileforreadingandwriting*/$fp=fopen("test.txt","rw");$rot_filter=stream_filter_append($fp,"string.rot",STREAM_FILTER_WRITE);fwrite($fp,"Thisis");stream_filter_remove($rot_filter);fwrite($fp,"atestn");rewind($fp);fpassthru($fp);fclose($fp);?>

以上例程会输出:

参见

stream_filter_register() - Register a user defined stream filter stream_filter_append() - Attach a filter to a stream stream_filter_prepend() - Attach a filter to a stream

PHP:stream_encoding()的用法_Stream函数 stream_encoding(Noversioninformationavailable,mightonlybeinGit)stream_encoding设置数据流的字符集说明boolstream_encoding(resource$stream[,string$encoding])Warning本函数还未编写文档

PHP:stream_context_set_option()的用法_Stream函数 stream_context_set_option(PHP4=4.3.0,PHP5)stream_context_set_option对资源流、数据包或者上下文设置参数说明boolstream_context_set_option(resource$stream_or_context,string$wrapper,stri

PHP:stream_context_get_params()的用法_Stream函数 stream_context_get_params(PHP5=5.3.0)stream_context_get_paramsRetrievesparametersfromacontext说明arraystream_context_get_params(resource$stream_or_context)Retrievesparameterandoptionsinformationfrom

本文链接地址:https://www.jiuchutong.com/biancheng/280600.html 转载请保留说明!

上一篇:PHP:stream_get_contents()的用法_Stream函数

下一篇:PHP:stream_encoding()的用法_Stream函数

免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络