stream_context_set_option
stream_context_set_option
Sets an option for a stream/wrapper/context
bool **stream_context_set_option** resource $stream_or_context string $wrapper string $option_name mixed $value
The following alternative signature is deprecated as of PHP 8.4.0, use instead.
`stream_context_set_options````php bool stream_context_set_option resource $stream_or_context array $options
Sets an option on the specified context.
is set to for
`value``option``wrapper`
`stream_or_context`The stream or context resource to apply the options to.
`wrapper`
The name of the wrapper (which may be different than the protocol).
Refer to
for a listing of stream options.
context options and parameters
`option_name`The name of the option.
`value`The value of the option.
`options`
The options to set for .
`stream_or_context`
> **Opmerking:** > must be an associative
> array of associative arrays in the format
> .
> `options``$arr['wrapper']['option'] = $value`
>
>
> Refer to
> for a listing of stream options.
> context options and parameters
return.success