PHP Function Reference

PHP stream_context_set_params() Function



The PHP stream_context_set_params() function is used to set parameters for the specified stream, wrapper or context.

Syntax

stream_context_set_params(context, params)

Parameters

context Required. Specify the stream or context resource to apply the parameters to.
params Required. Specify an associative array of parameters to be set in the following format: $params['param_name'] = "param_value";.

Return Value

Returns true on success or false on failure.


❮ PHP Streams Reference