位置: 编程技术 - 正文

PHP:stream_context_get_params()的用法_Stream函数

编辑:rootadmin
stream_context_get_params

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

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

(PHP 5 >= 5.3.0)

stream_context_get_params — Retrieves parameters from a context

说明 array stream_context_get_params ( resource $stream_or_context )

Retrieves parameter and options information from the stream or context.

参数

stream_or_context

A stream resource or a context resource

返回值 PHP:stream_context_get_params()的用法_Stream函数

Returns an associate array containing all context options and parameters.

范例

Example #1 stream_context_get_params() example

Basic usage example

<?php$ctx=stream_context_create();$params=array("notification"=>"stream_notification_callback");stream_context_set_params($ctx,$params);var_dump(stream_context_get_params($ctx));?>

以上例程的输出类似于:

参见

stream_context_set_option() - 对资源流、数据包或者上下文设置参数 stream_context_get_params() stream_context_set_params() - Set parameters for a stream/wrapper/context

PHP:stream_context_create()的用法_Stream函数 stream_context_create(PHP4=4.3.0,PHP5)stream_context_create创建资源流上下文说明resourcestream_context_create([array$options[,array$params]])创建病返回一个资源流上下文,该资

PHP:stream_context_get_options()的用法_Stream函数 stream_context_get_options(PHP4=4.3.0,PHP5)stream_context_get_options获取资源流/数据包/上下文的参数说明arraystream_context_get_options(resource$stream_or_context)返回指定资源流

PHP:spl_object_hash()的用法_spl函数 spl_object_hash(PHP5=5.2.0)spl_object_hash返回指定对象的hashid说明stringspl_object_hash(object$obj)本函数为指定对象返回一个唯一标识符。这个标识符可用于作为保存

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

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

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

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

鄂ICP备2023003026号

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

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