Menu Riverview Church

STREAM_CONTEXT_SET_PARAMS

Set parameters for a stream/wrapper/context

SYNTAX

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

PARAMETERS

stream_or_context

The stream or context to apply the parameters too.

params

An array of parameters to set.

Note: params should be an associative array of the structure: $params['paramname'] = "paramvalue";.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

1

PHP