HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

stream_context_set_params

Description

The stream_context_set_params of Stream for PHP set parameters for a stream/wrapper/context.

Syntax

stream_context_set_params(
    resource $context,
    array $params
): true

Parameters

context

The stream or context to apply the parameters to.

params

An associative array of parameters to be set in the following format: $params['name'] = "value";.

Return

Returns true.

Examples

1 · context params

<?

$context = stream_context_create();
$params =
[
    "notification" => "stream_notification_callback"
];

$return = stream_context_set_params($context, $params);

var_export($return);
true