stream_context_set_default
Description
Set the default stream context
Syntax
stream_context_set_default(array $options): resource
Parameters
options
The options to set for the default context.
Note: options must be an associative array of associative arrays in the format $arr['wrapper']['option'] = $value.
Return
Returns the default stream context.
Examples
1
<? $options = array("http" => array("method" => "POST")); $return = stream_context_set_default($options); echo $return; ?>
Resource id #2