CakeFest 2024: The Official CakePHP Conference

stream_context_set_params

(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)

stream_context_set_paramsストリーム / ラッパー / コンテキストのパラメータを設定する

説明

stream_context_set_params(resource $context, array $params): bool

指定したコンテキストのパラメータを設定します。

パラメータ

context

パラメータを適用したいストリームあるいはコンテキスト。

params

$params['paramname'] = "paramvalue"; という形式で設定される、連想配列のパラメータ。

サポートされているパラメータ
パラメータ 目的
notification ストリームから何らかの通知があった時に呼ばれる、ユーザー定義のコールバック関数を指定します。 http:// および ftp:// ストリームラッパーでのみサポートされます。
options コンテキストオプションおよびパラメータ を参照ください。

戻り値

成功した場合に true を、失敗した場合に false を返します。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top