Menu Riverview Church

STREAM_CONTEXT_SET_OPTION

Sets an option for a stream/wrapper/context

SYNTAX

stream_context_set_option ( resource $stream_or_context , string $wrapper , string $option , mixed $value ) : bool
stream_context_set_option ( resource $stream_or_context , array $options ) : bool

PARAMETERS

stream_or_context

The stream or context resource to apply the options to.

options

The options to set for stream_or_context.

Note: options must be an associative array of associative arrays in the format $arr['wrapper']['option'] = $value. Refer to context options and parameters for a listing of stream options.

RETURN

Returns TRUE on success or FALSE on failure.

EXAMPLES

STREAM_OR_CONTEXT WRAPPER OPTION VALUE

1

STREAM_OR_CONTEXT OPTIONS

1

PHP